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

13 lines
172 B
Kotlin
Vendored

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