Files
kotlin/compiler/testData/codegen/box/classes/inheritSetAndHashSet.kt

12 lines
171 B
Kotlin
Vendored

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