Files
kotlin-fork/compiler/testData/diagnostics/tests/nullabilityAndAutoCasts/NullableNothingIsExactlyNull.kt
T
2013-12-11 19:53:50 +04:00

9 lines
186 B
Kotlin

fun test() {
val out : Int? = null
val x : Nothing? = null
if (out != x)
<!DEBUG_INFO_AUTOCAST!>out<!>.plus(1)
if (out == x) return
<!DEBUG_INFO_AUTOCAST!>out<!>.plus(1)
}