// TARGET_BACKEND: JVM // WITH_STDLIB // FILE: B.java public class B extends A { @Override public T[] toArray(T[] a) { return a; } } // FILE: main.kt open class A : Collection { override val size: Int get() = TODO("Not yet implemented") override fun contains(element: T): Boolean { TODO("Not yet implemented") } override fun containsAll(elements: Collection): Boolean { TODO("Not yet implemented") } override fun isEmpty(): Boolean { TODO("Not yet implemented") } override fun iterator(): Iterator { TODO("Not yet implemented") } } fun box() = B().toArray(arrayOf("OK"))[0]