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

8 lines
127 B
Kotlin
Vendored

// !CHECK_TYPE
fun foo(x: Number): Boolean {
val result = (x as Int) in 1..5
checkSubtype<Int>(x)
return result
}