I am upgrading to Xtend 2.5 (from 2.4) and have notice that the new stricter compiler checks don't like Xtext(EMF) enums, specifically the names.
i.e. for a simple Xtext model
grammar org.xtext.example.mydsl.MyDsl with org.eclipse.xtext.common.Terminals
enum Foo : one | two | three ;
If I want to get the name of the enum and use auto complete in xtend.
package org.xtext.example.mydsl
import org.xtext.example.mydsl.myDsl.Model
I get an error
"Ambiguous feature call.
The methods
name() in Enum and
getName()
in Foo
both match."
Easily solved by changing this to m.foo.getName , but that is ugly IMO I liked being able to use .name , and I am not clear on why Xtend finds this ambiguous.
Is there a more elegant solution or is that just the way it is now in Xtend with Xtext?