Files
kotlin-fork/compiler/testData/diagnostics/tests/inference/nestedCalls/arrayAccess.kt
T
2013-09-02 23:18:45 +04:00

12 lines
142 B
Kotlin

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