Files
kotlin-fork/compiler/testData/diagnostics/tests/dataFlowInfoTraversal/WhenSubject.kt
T
2015-04-29 16:33:24 +02:00

9 lines
183 B
Kotlin
Vendored

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