Quick fix for applying spread operator where vararg is expected #KT-6824 Fixed

This commit is contained in:
shiraji
2016-12-27 01:35:18 +09:00
committed by Mikhail Glukhikh
parent 6ae4b42164
commit 44e69d8adc
15 changed files with 201 additions and 7 deletions
@@ -0,0 +1,8 @@
// "Change 'pairs' to '*pairs'" "true"
// WITH_RUNTIME
fun <K, V> yourMapOf(vararg pairs: Pair<K, V>) {}
fun myMapOf(vararg pairs: Pair<String,String>) {
val myMap = yourMapOf(*pairs)
}