ceylon/ceylon-spec — Issue #76: null value inside if (is Nothing x)
Author: flaviooliveri
Created: 2011-11-27 10:05:05+00:00
State: open

The type checker allows this:

class MethodIsNothing() {
shared Natural m(Natural? x) {
if (is Nothing x) {
return x;
}
}