ceylon/ceylon-compiler — Issue #210: Evaluation of "is Nothing" is always true
Author: J4Fry
Created: 2011-11-22 08:00:21+00:00
State: open

The "is Nothing" expression is always evaluated to true even when the value isn't null.
Discussed on ceylon-dev: https://groups.google.com/d/msg/ceylon-dev/vvFfFpur-2g/r50k9fc4qc8J

Example Code

```ceylon
String getMyString() {:
return "test";
}
void hiCeylon() {
String? myString = getMyString();
if(is Nothing myString) { // always true
print("null value");
}
}
```