Community
Participate
Working Groups
The following Xtend2 snippet: <T extends Integer> castOfFunction() { [T a,T b|(a+(b as Integer))] as (T,T)=>T } is accepted as legal by the Xtend2 editor, but is compiled to the following illegal Java code: public <T extends Integer> Function2<? extends Integer,? extends Integer,? extends Integer> castOfFunction() { final Function2<T,T,Integer> _function = new Function2<T,T,Integer>() { public Integer apply(T a , T b) { final T typeConverted_a = (T)a; int _operator_plus = IntegerExtensions.operator_plus(typeConverted_a, ((java.lang.Integer) b)); return _operator_plus; } }; return (((T, T) => T) _function); // COMPILE ERROR HERE }
Pushed to master.
Closing all bugs that were set to RESOLVED before Neon.0