Fix type arguments mapping

This commit is contained in:
Dmitry Petrov
2018-03-19 14:08:04 +03:00
parent eb5904ea8e
commit 135d3ab57a
33 changed files with 365 additions and 165 deletions
+1 -1
View File
@@ -2,5 +2,5 @@
// WITH_RUNTIME
// FULL_JDK
fun <K, V> Map<out K, V>.plus(pair: Pair<K, V>): Map<K, V> =
fun <K1, V1> Map<out K1, V1>.plus(pair: Pair<K1, V1>): Map<K1, V1> =
if (this.isEmpty()) mapOf(pair) else LinkedHashMap(this).apply { put(pair.first, pair.second) }