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

8 lines
154 B
Kotlin
Vendored

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