public class Foo { public Foo(int x) { } void m() { Foo.new Bar a = new Bar(); } }