| Summary: | [Xtend] typing in nested switch statements doesn't work as expected | ||
|---|---|---|---|
| Product: | [Tools] Xtend | Reporter: | Moritz Eysholdt <moritz.eysholdt> |
| Component: | Core | Assignee: | Project Inbox <xtend-inbox> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | dennis.huebner, sebastian.zarnekow, sven.efftinge |
| Version: | 2.2.0 | ||
| Target Milestone: | M6 | ||
| Hardware: | Macintosh | ||
| OS: | Mac OS X | ||
| Whiteboard: | |||
| Bug Depends on: | 376037 | ||
| Bug Blocks: | |||
Works like a charm with the new type system. Requested via bug 522520. -M. Requested via bug 522520. -M. |
Example: --- class foo { def bar(Object o) { switch (o) { CharSequence: switch(o) { Comparable: { o.charAt(1) o.compareTo(o) } } } } } --- Within the second case-statement, I'd expect to be able to access the methods declared in interface CharSequence and in interface Comparable. However, the reference to "o.charAt(1)" can not be resolved.