You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Google Issue #971 : https://code.google.com/p/haxe/issues/detail?id=971] by andy@onthewings.net, at 19/06/2012, 18:56:45
Using haxe ca3b272, the following haxe code:
package;
class Test {
static function main():Void {
inline function test() {
var a = [];
a.push(123);
return a;
}
trace(test());
}
}
is compiled to:
var Test = function() { }
Test.main = function() {
console.log((function($this) {
var $r;
var a = [];
a.push(123);
$r = a;
return $r;
}(this)));
}
Test.main();
"$r" is redundant. It can directly return "a" instead.
The text was updated successfully, but these errors were encountered:
[comment from ncanna...@gmail.com, published at 19/06/2012, 19:29:03]
We are planning to remove the function($this) {} wrapper in Haxe 3, see issue #247
[Google Issue #971 : https://code.google.com/p/haxe/issues/detail?id=971]
by andy@onthewings.net, at 19/06/2012, 18:56:45
Using haxe ca3b272, the following haxe code:
is compiled to:
"$r" is redundant. It can directly return "a" instead.
The text was updated successfully, but these errors were encountered: