Files
kotlin-fork/compiler/testData/codegen/box/specialBuiltins/entrySetSOE.kt
T
Ilya Matveev a5e4e0284e Mute some box tests for native backend
This patch mutes the following test categories:
   * Tests with java dependencies (System class,
     java stdlib, jvm-oriented annotations etc).
   * Coroutines tests.
   * Reflection tests.
   * Tests with an inheritance from the standard
     collections.
2017-03-10 19:59:37 +03:00

16 lines
314 B
Kotlin
Vendored

// 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"
}