| Summary: | [xtend] problem with type inference | ||
|---|---|---|---|
| Product: | [Modeling] TMF | Reporter: | Moritz Eysholdt <moritz.eysholdt> |
| Component: | Xtext | Assignee: | Project Inbox <tmf.xtext-inbox> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | jan, sebastian.zarnekow |
| Version: | unspecified | Flags: | sebastian.zarnekow:
indigo+
|
| Target Milestone: | SR1 | ||
| Hardware: | PC | ||
| OS: | Mac OS X - Carbon (unsup.) | ||
| Whiteboard: | |||
The type of e in the closure passed to the map cannot be resolved during linking (cannot resovlve reference to JvmIdentibiable element 'rule'), but is resolved later (hover shows correct type). Added greenish tests org.eclipse.xtext.xtend2.tests.linking.LinkingTest.testBug345433*(). Closing all bugs that were set to RESOLVED before Neon.0 Closing all bugs that were set to RESOLVED before Neon.0 |
the type of --- def unassignedCalledTokenRules() { grammar.containedRuleCalls.filter(e | !e.isAssigned() && !e.isEObjectRuleCall()).map(e | e.rule) } --- is resolved to Iterable<void>. It should be Iterable<AbstractRule>. containedRuleCalls(), isAssigned() and isEObjectRuleCall() are imported via import static extension org.eclipse.xtext.GrammarUtil.*