Hello,
With the recent update for hoisting supported I experienced this bug:
declare function print(...args:any[]);
export const foo = 5;
function bar( foo:string ) {
print( foo );
}
this code compiles to
local exports = exports or {};
exports.foo = 5;
local bar;
bar = function(foo)
print(exports.foo);
end;
return exports;
.
What I expected was “print(foo)” instead.
Kind regards, tjahn
Hello,
With the recent update for hoisting supported I experienced this bug:
this code compiles to
.
What I expected was “print(foo)” instead.
Kind regards, tjahn