Files
kotlin/compiler/testData/codegen/boxWithJava/builtinStubMethods/substitutedList/substitutedList.kt
2015-10-07 08:46:34 +03:00

23 lines
823 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: Any?): Boolean = null!!
override fun iterator(): Iterator<String> = null!!
override fun containsAll(c: Collection<Any?>): Boolean = null!!
override fun get(index: Int): String = null!!
override fun indexOf(o: Any?): Int = null!!
override fun lastIndexOf(o: Any?): 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"
}
}