JVM_IR prevent clash of unsubstituted special bridges

This commit is contained in:
Dmitry Petrov
2021-11-23 10:05:09 +03:00
committed by Space
parent 1e98748e0b
commit 55d1fdfbc2
12 changed files with 230 additions and 13 deletions
@@ -0,0 +1,18 @@
// 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
}