Files
kotlin-fork/compiler/testData/diagnostics/tests/smartCasts/varnotnull/varIntNull.fir.kt
T
Dmitriy Novozhilov 6735cc8937 [FIR] Implement new bound smartcast algorithm
#KT-36055 Fixed
2020-02-12 10:17:45 +03:00

6 lines
121 B
Kotlin
Vendored

// !WITH_NEW_INFERENCE
fun foo(): Int {
var i: Int? = 42
i = null
return i <!INAPPLICABLE_CANDIDATE!>+<!> 1
}