mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-11 08:31:30 +00:00
23 lines
831 B
Kotlin
Vendored
23 lines
831 B
Kotlin
Vendored
abstract class C : Test.A, List<String> {
|
|
override val size: Int get() = null!!
|
|
override fun isEmpty(): Boolean = null!!
|
|
override fun contains(o: String): Boolean = null!!
|
|
override fun iterator(): Iterator<String> = null!!
|
|
override fun containsAll(c: Collection<String>): Boolean = null!!
|
|
override fun get(index: Int): String = null!!
|
|
override fun indexOf(o: String): Int = null!!
|
|
override fun lastIndexOf(o: String): Int = null!!
|
|
override fun listIterator(): ListIterator<String> = null!!
|
|
override fun listIterator(index: Int): ListIterator<String> = null!!
|
|
override fun subList(fromIndex: Int, toIndex: Int): List<String> = null!!
|
|
}
|
|
|
|
fun box(): String {
|
|
try {
|
|
Test().test()
|
|
return "Fail"
|
|
} catch (e: UnsupportedOperationException) {
|
|
return "OK"
|
|
}
|
|
}
|