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

9 lines
182 B
Kotlin
Vendored

// !CHECK_TYPE
fun foo(x: Number) {
if ((x as Int) is Int) {
checkSubtype<Int>(<!DEBUG_INFO_SMARTCAST!>x<!>)
}
checkSubtype<Int>(<!DEBUG_INFO_SMARTCAST!>x<!>)
}