Community
Participate
Working Groups
The example ---- class bar { def static foo(int i) { i + 1 } new(int i) { } new() { this(foo(1)) } } --- raises error "Cannot refer to a method while explicitly invoking a constructor" under "foo(1)". Expected behavior: no error message, since this can directly be mapped to Java. The same should apply for "super()": --- class foo extends bar { new() { super(bar::foo( 42)) } } ---
See testcase with wrong expectation: Xtend2ValidationTest.testConstructorArgumentIsValid_04()
Pushed to master.
Closing all bugs that were set to RESOLVED before Neon.0