Files
kotlin/compiler/testData/diagnostics/tests/nullabilityAndSmartCasts/NullableNothingIsExactlyNull.kt
2014-10-01 18:52:52 +04:00

9 lines
188 B
Kotlin

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