ceylon/ceylon-js — Issue #53: method refs with spread
Author: chochos
Created: 2012-03-09 22:38:06+00:00
State: open

This is not working:

````
String[] full = { "hello", "world" };
Character?[] spread(Integer x) = full[].item;
````

`spread(1)` should return `{e,o}` but instead returns `world`. This is because the expression `full[].item` is not being correctly evaluated (spread op is ignored) and this is what gets generated:

````
var spread=(function(){var $=getFull();return $$$cl15.JsCallable($, $.item)})();
````