Files
kotlin/compiler/testData/codegen/box/classes/inheritSetAndHashSet.kt
2019-11-19 11:00:09 +03:00

14 lines
226 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
// 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()
}