Files
kotlin/compiler/testData/diagnostics/tests/nullabilityAndAutoCasts/NullableNothingIsExactlyNull.jet

9 lines
134 B
Plaintext

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