Files
kotlin-fork/compiler/testData/diagnostics/tests/dataFlowInfoTraversal/IsExpression.fir.kt
T
2021-05-05 18:20:51 +03:00

9 lines
151 B
Kotlin
Vendored

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