13 lines
311 B
Kotlin
Vendored
13 lines
311 B
Kotlin
Vendored
// KJS_WITH_FULL_RUNTIME
|
|
// WITH_RUNTIME
|
|
// IGNORE_BACKEND_FIR: JVM_IR
|
|
|
|
inline class Wrapper(val id: Int)
|
|
|
|
class DMap(private val map: Map<Wrapper, String>) :
|
|
Map<Wrapper, String> by map
|
|
|
|
fun box(): String {
|
|
val dmap = DMap(mutableMapOf(Wrapper(42) to "OK"))
|
|
return dmap[Wrapper(42)] ?: "Fail"
|
|
} |