Community
Participate
Working Groups
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.
Works like a charm with the new type system.
Requested via bug 522520. -M.