Files
kotlin-fork/compiler/testData/diagnostics/tests/smartCasts/varnotnull/varNull.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
130 B
Kotlin
Vendored

// !WITH_NEW_INFERENCE
fun foo(): Int {
var s: String? = "abc"
s = null
return s.<!INAPPLICABLE_CANDIDATE!>length<!>
}