Community
Participate
Working Groups
The following Xtend2 snippet: def <T extends =>Integer> baz(T t) { t.apply } is compiled to: public <T extends Function0<Integer>> Object baz(final T t) { ? _apply = t.apply(); return _apply; } This Java code has compile errors. The problem seems to be that the type of the expression t.apply() is inferred as Object instead of Integer. It should be compiled to: public <T extends Function0<Integer>> Integer baz(final T t) { Integer _apply = t.apply(); return _apply; }
Pushed to master.
Closing all bugs that were set to RESOLVED before Neon.0