Files
kotlin-fork/compiler/testData/diagnostics/tests/dataFlowInfoTraversal/AssignmentToArrayElement.kt
T
2013-12-11 19:53:50 +04:00

11 lines
228 B
Kotlin

fun arrayAccessRHS(a: Int?, b: Array<Int>) {
b[0] = a!!
<!DEBUG_INFO_AUTOCAST!>a<!> : Int
}
fun arrayAccessLHS(a: Int?, b: Array<Int>) {
b[a!!] = <!DEBUG_INFO_AUTOCAST!>a<!>
<!DEBUG_INFO_AUTOCAST!>a<!> : Int
}