Community
Participate
Working Groups
The following does not compile class Bar { new(String b) {} def bar() {} } class Foo { // Java problem: __Foo_1 cannot be resolved to a type @Accessors val bar = new Bar('') { override bar() { } } } Seems like type inference yields a new synthetic Java type as return type for the getter. It works if a default constructor is used.