Files
kotlin-fork/compiler/testData/codegen/box/collections/specialBridgeForGet.kt
T
Dmitriy Novozhilov 3b6ad36af1 [Test] Update/unmute tests after previous fixes
It's hard to tell which exact commit fixed each test
2023-10-17 12:46:28 +00:00

19 lines
399 B
Kotlin
Vendored

// TARGET_BACKEND: JVM
// WITH_STDLIB
// FULL_JDK
abstract class AMap1<K1, V1>(private val m: Map<K1, V1>) : Map<K1, V1> by m
interface Value2
abstract class AMap2<V2 : Value2>(m: Map<String, V2>) : AMap1<String, V2>(m)
class C(val value: String): Value2
class CMap(m: Map<String, C>) : AMap2<C>(m)
fun box(): String {
val cmap = CMap(mapOf("1" to C("OK")))
return cmap["1"]!!.value
}