Nullable Nothing is exactly null

This commit is contained in:
Andrey Breslav
2011-10-19 12:46:32 +04:00
parent 54646ac8dd
commit e262d94cc1
12 changed files with 223 additions and 243 deletions
@@ -0,0 +1,8 @@
fun test() {
val out : Int? = null
val x : Nothing? = null
if (out != x)
out.plus(1)
if (out == x) return
out.plus(1)
}