Files
kotlin-fork/compiler/testData/diagnostics/tests/when/BranchBypassVar.fir.kt
T

13 lines
168 B
Kotlin
Vendored

// !WITH_NEW_INFERENCE
class A
fun test(a: Any) {
var q: String? = null
when (a) {
is A -> q = "1"
}
// When is not exhaustive
return q
}