TypeScript/tests/baselines/reference/thisInModuleFunction1.js

18 lines
296 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
//// [thisInModuleFunction1.ts]
module bar {
export function bar() {
return this;
}
}
var z = bar.bar();
//// [thisInModuleFunction1.js]
var bar;
2015-03-24 00:16:29 +01:00
(function (bar_1) {
2014-07-13 01:04:16 +02:00
function bar() {
return this;
}
2015-03-24 00:16:29 +01:00
bar_1.bar = bar;
2014-07-13 01:04:16 +02:00
})(bar || (bar = {}));
var z = bar.bar();