Files
kotlin-fork/compiler/testData/asJava/lightClasses/lightClassByPsi/implementingKotlinCollections.kt
T
2023-01-02 15:05:38 +00:00

26 lines
589 B
Kotlin
Vendored

import java.util.*
class MyList : List<String> {
override operator fun get(index: Int): String {}
}
interface ASet<T> : MutableCollection<T> {}
abstract class MySet<T> : ASet<T> {
override fun remove(elem: String): Boolean {}
}
abstract class SmartSet<T> private constructor() : AbstractMutableSet<T>() {
override fun iterator(): MutableIterator<T> = unresolved
override fun add(element: T): Boolean {
return true
}
/* Should erasure T but UL classes does not support it in this case
override fun contains(element: T): Boolean = true
*/
}
// COMPILATION_ERRORS