Frontend: allow to use the spread operator in dynamic calls.
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user