Community
Participate
Working Groups
The following Xtend2 snippet: <T extends Integer> requiresCastOfOperand() { [T a,T b|a+b] } results in a validation error for the right 'b' operand of the '+' expression: "Incompatible types. Expected java.lang.Number but was T". Changing the snippet to read: <T extends Integer> requiresCastOfOperand() { [T a,T b|a+(b as Integer)] } gets rid of the validation. But that shouldn't be necessary.
Pushed to master.
Closing all bugs that were set to RESOLVED before Neon.0