ceylon/ceylon-js — Issue #39: expanded sequences don't work
Author: chochos
Created: 2012-02-02 03:53:35+00:00
State: open
Labels: bug

if you have a function `f(Integer...)` (that is, with a sequenced argument), passing a sequence with the "treat the sequence as varargs" syntax doesn't work. Having:
````
void f(Integer...nums);
Sequence s;
````
then `f(s...)` should directly pass `s` as the param to `f()`; instead of that, the compiler generates code for the equivalent of `f({s})` which obviously doesn't work.