Files
kotlin-fork/compiler/testData/diagnostics/tests/inference/nestedCalls/arrayAccess.kt
T
2015-09-25 19:20:20 +03:00

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])
}