Files
kotlin-fork/compiler/testData/diagnostics/tests/dataFlowInfoTraversal/ArrayExpression.kt
T
2012-11-16 17:56:24 +04:00

6 lines
120 B
Kotlin

fun foo(arr: Array<out Number>): Int {
val result = (arr as Array<Int>)[0]
arr : Array<Int>
return result
}