FIR: Fix regression-like CONFLICTING_JVM_DECLARATIONS

See the class org.ini4j.Ini used in intelliJ (derived kt class MyIni)
It contains inherited remove override with the following signature:
String remove(Object sectionName, Object optionName)

While also, from kotlin.collections.MutableMap we inherit
boolean remove(Object, Object)

And we should treat them as different methods to have correct signatures
in resulting class scope
This commit is contained in:
Denis.Zharkov
2022-04-25 13:12:16 +03:00
committed by teamcity
parent 784a911d1a
commit 40119cb041
7 changed files with 29 additions and 4 deletions
@@ -0,0 +1,4 @@
package test;
public interface A extends java.util.Map<String, String> {
String remove(Object x, Object y);
}
@@ -0,0 +1,4 @@
package test;
public abstract class B implements java.util.Map<String, String>, A {
public String remove(Object x, Object y) { return x; }
}
@@ -0,0 +1,3 @@
package test
abstract class C : B()