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

13 lines
197 B
Kotlin
Vendored

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