Files
kotlin-fork/compiler/testData/diagnostics/tests/inference/nestedCalls/arrayAccess.fir.kt
T

12 lines
151 B
Kotlin
Vendored

package b
class A {
operator fun <T> get(i: Int): List<T> = throw Exception("$i")
}
fun bar(l: List<Int>) = l
fun test(a: A) {
bar(a[12])
}