7f3d0af4f7
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.
9 lines
171 B
Kotlin
Vendored
9 lines
171 B
Kotlin
Vendored
// FULL_JDK
|
|
|
|
import java.util.EnumMap
|
|
|
|
typealias SomeEnumMap = EnumMap<String, String?>
|
|
|
|
fun test(map: SomeEnumMap, qualifier: String?) {
|
|
val result = map[qualifier]
|
|
} |