12 lines
151 B
Kotlin
Vendored
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])
|
|
}
|