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

9 lines
147 B
Kotlin
Vendored

// !CHECK_TYPE
fun foo(arr: Array<Int>?) {
for (x in arr!!) {
checkSubtype<Array<Int>>(arr)
}
checkSubtype<Array<Int>>(arr)
}