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