| Summary: | Specifying super types with only alternative break EAttribute inheritance | ||
|---|---|---|---|
| Product: | [Modeling] TMF | Reporter: | Florian Philipp <eclipse> |
| Component: | Xtext | Assignee: | Project Inbox <tmf.xtext-inbox> |
| Status: | CLOSED WONTFIX | QA Contact: | |
| Severity: | minor | ||
| Priority: | P3 | CC: | sebastian.zarnekow |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Whiteboard: | |||
|
Description
Florian Philipp
This works as specified. The attributes will be pulled up if there is more than one subtype and all subtypes have the attribute in common. That condition does not hold for TypeB which has not a 'name' attribute.
Consider the following simplified example:
Type: SubType | {Type} 'keyword';
SubType: someAttribute=ID;
If we reduce the constraints that mark attributes as 'to-be-pulled-up', all attributes would end up in the most abstract super type. That's usually not what you'ld expect.
In general I'd recommend to switch to imported metamodels as soon as your grammar is settled or the meta model inference does not do what you want.
Please reopen if I missed a point.
Closing all bugs that were set to RESOLVED before Neon.0 Closing all bugs that were set to RESOLVED before Neon.0 |