[FIR Java] Soften rules for matching types for may-be-special-builtins

This commit is workaround for cases like
MyJavaMap<KK : Bound, V> : java.util.Map<K, V>.
After signature changing and substitution we have
MyJavaMap.get(Object) declared and MyJavaMap.get(KK) from supertype,
which can't be otherwise matched as overriding one another.
This commit is contained in:
Mikhail Glukhikh
2020-10-15 11:17:41 +03:00
parent 81529a835b
commit 7f3d0af4f7
4 changed files with 58 additions and 11 deletions
@@ -0,0 +1,9 @@
// FULL_JDK
import java.util.EnumMap
typealias SomeEnumMap = EnumMap<String, String?>
fun test(map: SomeEnumMap, qualifier: String?) {
val result = map[qualifier]
}