ceylon/ceylon-compiler — Issue #292: Compile errror with ?/else operator
Author: ikasiuk
Created: 2011-12-16 18:07:57+00:00
State: open

The following code does not compile:

```
String[]? s1 = null;
String[] s2 = s1?{};
```

The compiler says:

```
Test.ceylon:5: incompatible types
found : ceylon.language.Boolean
required: ceylon.language.Iterable
String[] s2 = s1?{};
^
```

When replacing `s1?{}` with `null?{}`, the error says "found: java.lang.Object" instead.