mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
28 lines
577 B
Kotlin
Vendored
28 lines
577 B
Kotlin
Vendored
import java.util.*
|
|
|
|
/** should load cls */
|
|
class MyList : List<String> {
|
|
override operator fun get(index: Int): String {}
|
|
}
|
|
|
|
/** should load cls */
|
|
interface ASet<T> : MutableCollection<T> {}
|
|
|
|
/** should load cls */
|
|
abstract class MySet<T> : ASet<T> {
|
|
override fun remove(elem: String): Boolean {}
|
|
|
|
}
|
|
|
|
/** should load cls */
|
|
abstract class SmartSet<T> private constructor() : AbstractSet<T>() {
|
|
override fun iterator(): MutableIterator<T> = unresolved
|
|
|
|
override fun add(element: T): Boolean {
|
|
return true
|
|
}
|
|
|
|
override fun contains(element: T): Boolean = true
|
|
|
|
}
|