[FE] Substitute erased type parameters as covariant

This commit is contained in:
Victor Petukhov
2022-04-25 18:59:52 +03:00
committed by teamcity
parent 4293b546ba
commit 54f0794ce3
8 changed files with 52 additions and 3 deletions
@@ -0,0 +1,7 @@
// FIR_IDENTICAL
// WITH_STDLIB
// FULL_JDK
import java.util.*
fun <K : Enum<K>, V> enumMapOf(vararg pairs: Pair<K, V>): EnumMap<K, V> = EnumMap(mapOf(*pairs))
@@ -0,0 +1,3 @@
package
public fun </*0*/ K : kotlin.Enum<K>, /*1*/ V> enumMapOf(/*0*/ vararg pairs: kotlin.Pair<K, V> /*kotlin.Array<out kotlin.Pair<K, V>>*/): java.util.EnumMap<K, V>