// TARGET_BACKEND: JVM class MyCollection : Collection>> { override fun iterator() = null!! override val size: Int get() = null!! override fun isEmpty(): Boolean = null!! override fun contains(o: List>): Boolean = null!! override fun containsAll(c: Collection>>): Boolean = null!! } fun box(): String { val c = MyCollection() as java.util.Collection>> try { c.add(ArrayList()) return "Fail" } catch (e: UnsupportedOperationException) { return "OK" } }