ceylon/ceylon-compiler — Issue #310: Error with "?." operator and erasure of Integer
Author: ikasiuk
Created: 2011-12-27 19:33:24+00:00
State: open

There's a problem with the `x?.i` in the following code:

```
interface X { shared formal Integer i; }
void test() {
X? x = null;
Integer? j = x?.i;
}
```

This is the compiler error message:

```
Test.ceylon:4: incompatible types
found : java.lang.Long
required: ceylon.language.Integer
Integer? j = x?.i;
^
Fatal Error: Unable to find method valueOf
```