class A { int x; A(int x) { this.x = x; } } class J { int foo(int c, A a1) { return a1.x * c } } class Test { void test() { new J().foo(3, new A(1 + 2)); } }