// IGNORE_BACKEND: NATIVE class A : Map { override val size: Int get() = 56 override fun isEmpty(): Boolean { throw UnsupportedOperationException() } override fun containsKey(key: String): Boolean { throw UnsupportedOperationException() } override fun containsValue(value: String): Boolean { throw UnsupportedOperationException() } override fun get(key: String): String? { throw UnsupportedOperationException() } override val keys: Set get() { throw UnsupportedOperationException() } override val values: Collection get() { throw UnsupportedOperationException() } override val entries: Set> get() { throw UnsupportedOperationException() } } fun box(): String { val a = A() if (a.size != 56) return "fail 1: ${a.size}" val x: Map = a if (x.size != 56) return "fail 2: ${x.size}" return "OK" }