1b553ebfaf
Added tests from testData/codegen/box directory. There are blackbox tests in other directories and they are to be added.
15 lines
288 B
Kotlin
15 lines
288 B
Kotlin
|
|
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"
|
|
}
|