ceylon/ceylon-compiler — Issue #313: Compiler error when using an optional type (String) and the ?. operator
Author: ragaller
Created: 2012-01-01 23:41:16+00:00
State: open

Trying to compile the following code

```ceylon
void hello()
{
String? name = process.arguments.first;
String shoutedGreeting = "HELLO, " + name?.uppercased ? "WORLD";
print(shoutedGreeting);

}
```
will result in

```
/home/ceylon/source/hello.ceylon:4: incompatible types
found : java.lang.String
required: ceylon.language.String
String shoutedGreeting = "HELLO, " + name?.uppercased ? "WORLD";
^
```

This may be related to Issue: #310 as mentioned [here] (http://groups.google.com/group/ceylon-users/browse_thread/thread/a6a0aefe15a3031b)