ceylon/ceylon-compiler — Issue #242: Missing typecast on [index] operator
Author: gavinking
Created: 2011-11-27 17:25:28+00:00
State: open
Labels: BEGINNER, BUG, high priority

When we call `item()` on a `T[]`, we get a typecast at the Java level:

((ceylon.language.Correspondence)keys).item(.ceylon.language.Natural.instance(i))

But when we use the `[]` operator, it's missing:

items.item(.ceylon.language.Natural.instance(i))

Which results in an error from javac.