ae8b896c7b
FIR2IR generates correct IR, unlike PSI2IR. #KT-59051 Fixed
22 lines
408 B
Kotlin
Vendored
22 lines
408 B
Kotlin
Vendored
// TARGET_BACKEND: JVM
|
|
// IGNORE_BACKEND_K1: JVM, JVM_IR
|
|
|
|
interface A {
|
|
override operator fun equals(other: Any?): Boolean
|
|
override fun hashCode(): Int
|
|
}
|
|
|
|
class AImpl : A {
|
|
override fun equals(other: Any?) = super.equals(other)
|
|
override fun hashCode() = super.hashCode()
|
|
}
|
|
|
|
interface B
|
|
class BImpl : B
|
|
|
|
class Impl : A by AImpl(), B by BImpl()
|
|
|
|
fun box(): String {
|
|
Impl()
|
|
return "OK"
|
|
} |