Quick fix for applying spread operator where vararg is expected #KT-6824 Fixed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
6ae4b42164
commit
44e69d8adc
@@ -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(<caret>pairs)
|
||||
}
|
||||
Reference in New Issue
Block a user