| Summary: | Cannot wrap an enum defined in an interface | ||
|---|---|---|---|
| Product: | [Modeling] EMF | Reporter: | Jan Rosczak <jan.rosczak> |
| Component: | Xcore | Assignee: | Ed Merks <Ed.Merks> |
| Status: | CLOSED FIXED | QA Contact: | Ed Merks <Ed.Merks> |
| Severity: | major | ||
| Priority: | P3 | CC: | jan.rosczak |
| Version: | 1.0 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
The fix is committed to 2.8 and master. The changes are available in the latest builds. |
In my Xcore model I am unable to wrap an enum defined in an interface. For example I have the following interface: interface RelationshipDescription { public enum Cardinality { NONE, ONE, MANY } } Then in my Xcore model I would like to use the enum Cardinality: type Cardinality wraps RelationshipDescription$Cardinality create { return RelationshipDescription$Cardinality::valueOf(it) } The type RelationshipDescription$Cardinality is found and correctly imported. But the code for "create" is marked as follows: Incompatible types. Expected null but was RelationshipDescription.Cardinality.