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

11 lines
246 B
Kotlin
Vendored

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