Files
kotlin/compiler/testData/codegen/box/classes/inheritSetAndHashSet.kt
Anton Bannykh 8c6337f3f6 [JS IR BE]: support dynamic_var["foo"] = "bar"
Used EQ origin to detect. Added a test to check dynamic_var = "bar" case
is not affected
2018-10-10 13:43:22 +03:00

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