Files
kotlin-fork/compiler/testData/diagnostics/tests/dataFlowInfoTraversal/ArrayIndices.fir.kt
T
2021-04-09 12:32:45 +03:00

12 lines
230 B
Kotlin
Vendored

// !CHECK_TYPE
fun foo1(a: Int?, b: Array<Array<Int>>) {
b[a!!][a<!UNNECESSARY_NOT_NULL_ASSERTION!>!!<!>] = a
checkSubtype<Int>(a)
}
fun foo2(a: Int?, b: Array<Array<Int>>) {
b[0][a!!] = a
checkSubtype<Int>(a)
}