TypeScript/tests/baselines/reference/thisInStaticMethod1.js
2014-07-12 17:30:19 -07:00

21 lines
327 B
TypeScript

//// [thisInStaticMethod1.ts]
class foo {
static x = 3;
static bar() {
return this.x;
}
}
var x = foo.bar();
//// [thisInStaticMethod1.js]
var foo = (function () {
function foo() {
}
foo.bar = function () {
return this.x;
};
foo.x = 3;
return foo;
})();
var x = foo.bar();