[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:
@@ -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]
|
||||
}
|
||||
Reference in New Issue
Block a user