// FIX: Generate equals & hashCode by identity abstract class Base { open val prop: Int get() = 13 } sealed class SC : Base() { class U : SC() { override fun equals(other: Any?): Boolean { return this === other } override fun hashCode(): Int { return System.identityHashCode(this) } } override val prop: Int get() = 42 }