Files
kotlin/compiler/testData/codegen/box/operatorConventions/genericArrayAccessCall.kt
Mikhail Glukhikh 8c21f04bf4 FIR2IR: determine type parameters before value parameters
Type parameters can be referred from value parameters,
so we should determine them earlier to be able to set their indexes
2020-02-20 18:34:51 +03:00

24 lines
344 B
Kotlin
Vendored

// WITH_RUNTIME
// KJS_WITH_FULL_RUNTIME
import kotlin.collections.HashMap
class Inv1<T>
class Inv2<K, V>
class Something {
val guilds = Inv2<Int, Inv1<String>>()
fun test() {
guilds[0] = Inv1()
}
}
operator fun <K, V> Inv2<K, V>.set(key: K, value: V) { }
fun box(): String {
Something().test()
return "OK"
}