Copied from https://yellowgrass.org/issue/mobl/179

function accountgroup() : [Num] {
var r = range(0,13);
var xy = function(it : Num) : [Num] { return [it, 2000]; };
return [r.map(xy)];
}

Tthe compiler thinks the return inside the anonymous function is the return of accountgroup()

Same error still in 0.4.5

Submitted by Terje Pedersen on 12 July 2011 at 11:32

Log in to post comments