Files
kotlin-fork/compiler/testData/diagnostics/tests/smartCasts/inference/kt1275.fir.kt
T

11 lines
192 B
Kotlin
Vendored

// !CHECK_TYPE
fun foo(s : String?, b : Boolean) {
if (s == null) return
val s1 = if (b) "" else s
s1 checkType { _<String>() }
val s2 = s
s2 checkType { _<String>() }
}