Files
kotlin-fork/compiler/testData/diagnostics/tests/dataFlowInfoTraversal/WhenSubject.fir.kt
T

9 lines
129 B
Kotlin
Vendored

// !CHECK_TYPE
fun foo(x: Number) {
when (x as Int) {
else -> checkSubtype<Int>(x)
}
checkSubtype<Int>(x)
}