KT-37779 Treat named value arguments in vararg as arguments with '*'

This commit is contained in:
Dmitry Petrov
2020-04-06 19:12:43 +03:00
parent fa9d79392f
commit dae8872aba
15 changed files with 118 additions and 15 deletions
+10
View File
@@ -0,0 +1,10 @@
// !LANGUAGE: +AllowAssigningArrayElementsToVarargsInNamedFormForFunctions
fun foo(vararg s: String) {}
fun test1() {
foo(s = arrayOf("", "OK"))
}
fun test2(ss: Array<String>) {
foo(s = ss)
}