mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 15:53:37 +00:00
14 lines
226 B
Kotlin
Vendored
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()
|
|
}
|