Files
kotlin/compiler/testData/codegen/box/builtinStubMethods/extendJavaCollections/abstractMap.kt
2016-11-09 21:41:12 +03:00

26 lines
461 B
Kotlin
Vendored

// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS
import java.util.AbstractMap
import java.util.Collections
class A : AbstractMap<Int, String>() {
override val entries: MutableSet<MutableMap.MutableEntry<Int, String>> get() = Collections.emptySet()
}
fun box(): String {
val a = A()
val b = A()
a.remove(0)
a.putAll(b)
a.clear()
a.keys
a.values
a.entries
return "OK"
}