Files
kotlin/compiler/testData/codegen/box/operatorConventions/genericArrayAccessCall.kt
2019-11-19 11:00:09 +03:00

25 lines
374 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
// 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"
}