0f179e8949
^KT-33132: Fixed
26 lines
789 B
Kotlin
Vendored
26 lines
789 B
Kotlin
Vendored
open class Parent {
|
|
override fun equals(other: Any?): Boolean =
|
|
super.equals(other)
|
|
}
|
|
open class OperatorParent {
|
|
override operator fun equals(other: Any?): Boolean =
|
|
super.equals(other)
|
|
}
|
|
|
|
class A : Parent() {
|
|
override fun equals(other: Any?): Boolean =
|
|
super.equals(other)
|
|
}
|
|
class B : OperatorParent() {
|
|
override fun equals(other: Any?): Boolean =
|
|
super.equals(other)
|
|
}
|
|
class C : Parent() {
|
|
override <!INAPPLICABLE_OPERATOR_MODIFIER!>operator<!> fun equals(other: Any?): Boolean = // false positive in K1, OK in K2
|
|
super.equals(other) //
|
|
}
|
|
class D : OperatorParent() {
|
|
override <!INAPPLICABLE_OPERATOR_MODIFIER!>operator<!> fun equals(other: Any?): Boolean = // false positive in K1, OK in K2
|
|
super.equals(other)
|
|
}
|