// FIR_DISABLE_LAZY_RESOLVE_CHECKS // FULL_JDK import java.util.* import java.util.function.BiConsumer private val DEBUG = true abstract class SomeHashTable : AbstractMutableMap() { override fun forEach(action: BiConsumer) {} override val entries: MutableSet> get() { if (DEBUG) { return Collections.unmodifiableSet( mutableSetOf>().apply { forEach { key, value -> add(Entry(key, value)) } } ) } throw UnsupportedOperationException() } private class Entry(override val key: K, override val value: V) : MutableMap.MutableEntry { override fun setValue(newValue: V): V = throw UnsupportedOperationException() } }