FIR: Do not load hashCode/toString/equals methods from Java interface

As it's done in FE 1.0, and there are subtle semantics in the language that depends on it
This commit is contained in:
Denis Zharkov
2020-09-22 18:26:31 +03:00
parent 7c7c5336f9
commit 9914b487b7
6 changed files with 37 additions and 42 deletions
@@ -1,6 +1,4 @@
public abstract interface Comparator<T : R|ft<kotlin/Any, kotlin/Any?>!|> : R|kotlin/Any| {
public abstract fun compare(o1: R|ft<T, T?>!|, o2: R|ft<T, T?>!|): R|kotlin/Int|
public abstract operator fun equals(obj: R|kotlin/Any?|): R|kotlin/Boolean|
}
@@ -1,4 +1,2 @@
public abstract interface InterfaceWithObjectMethod : R|kotlin/Any| {
public abstract fun toString(): R|kotlin/String|
}