Files
kotlin-fork/compiler/testData/codegen/box/specialBuiltins/entrySetSOE.kt
T
Dmitry Petrov 8be7f7f1f7 IR: Make sure that symbols refer to original descriptors only
If a descriptor is a WrappedDeclarationDescriptor, it SHOULD NOT be
substituted.
2019-03-29 16:00:56 +03:00

17 lines
339 B
Kotlin
Vendored

// KJS_WITH_FULL_RUNTIME
// IGNORE_BACKEND: NATIVE
open class Map1 : HashMap<String, Any?>()
class Map2 : Map1()
fun box(): String {
val m = Map2()
if (m.entries.size != 0) return "fail 1"
m.put("56", "OK")
val x = m.entries.iterator().next()
if (x.key != "56" || x.value != "OK") return "fail 2"
return "OK"
}