Files
kotlin-fork/compiler/testData/codegen/box/classes/inheritSetAndHashSet.kt
T
2020-11-09 16:04:43 +03:00

15 lines
271 B
Kotlin
Vendored

// DONT_TARGET_EXACT_BACKEND: WASM
// WASM_MUTE_REASON: STDLIB_COLLECTIONS
// KJS_WITH_FULL_RUNTIME
// IGNORE_BACKEND: NATIVE
interface A : Set<String>
class B : A, HashSet<String>()
fun box(): String {
val b = B()
b.add("OK")
return b.iterator().next()
}