Files
kotlin-fork/compiler/testData/diagnostics/tests/smartCasts/notNullorNotNull.kt
T

6 lines
182 B
Kotlin
Vendored

fun bar(x: Int?): Int {
if (x != null) return -1
if (<!SENSELESS_COMPARISON!><!DEBUG_INFO_CONSTANT!>x<!> == null<!>) return -2
// Should be unreachable
return 2 + 2
}