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

9 lines
128 B
Kotlin
Vendored

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