Frontend: allow to use the spread operator in dynamic calls.

This commit is contained in:
Zalim Bashorov
2014-12-11 23:56:21 +03:00
parent 4ac3cbc384
commit 59c4f55988
4 changed files with 84 additions and 26 deletions
@@ -0,0 +1,14 @@
fun test(d: dynamic) {
val a = array(1, 2, 3)
d.foo(*d)
d.foo(*a)
d.foo(1, "2", *a)
d.foo(1, *a) { }
d.foo(*a) { "" }
d.foo(*a, *a)
d.foo(*a, *a) { "" }
d.foo(*a, 1, { "" }, *a)
d.foo(*a, 1)
d.foo(*a, *a, { "" })
}
@@ -0,0 +1,3 @@
package
internal fun test(/*0*/ d: dynamic): kotlin.Unit