606de26646
... in case `-Xno-optimized-callable-references` is enabled. Before this change, the generated abstract equals/hashCode methods were considered as accidental overrides because they did not have equals/hashCode from the supertype in the overriddenSymbols list. #KT-43666 Fixed
12 lines
191 B
Kotlin
Vendored
12 lines
191 B
Kotlin
Vendored
// KOTLIN_CONFIGURATION_FLAGS: +JVM.NO_OPTIMIZED_CALLABLE_REFERENCES
|
|
|
|
fun interface P {
|
|
fun get(): String
|
|
}
|
|
|
|
class G(val p: P)
|
|
|
|
fun f(): String = "OK"
|
|
|
|
fun box(): String = G(::f).p.get()
|