Community
Participate
Working Groups
Try to implement a type provider with xtend: def dispatch type(XBinaryOperation bo, JvmTypeReference r, boolean b) { .. some impl .. } the generated code looks like this (formatting is applied manually in this bug report): public JvmTypeReference type( final XExpression binaryOperation, final JvmTypeReference rawExpectation, final boolean rawType) { if ((binaryOperation instanceof XBinaryOperation)) { <-- unnecessary parenthesis return _type( (XBinaryOperation)binaryOperation, <-- expected cast (JvmTypeReference)rawExpectation, <-- unexpected cast (Boolean)rawType <-- unnecessary boxing and unboxing due to cast ); } ..
Pushed to master.
Closing all bugs that were set to RESOLVED before Neon.0