TypeScript/tests/baselines/reference/staticGetter2.js

21 lines
343 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
//// [staticGetter2.ts]
// once caused stack overflow
class C {
static x() {
var r = this;
return this;
}
}
//// [staticGetter2.js]
// once caused stack overflow
2014-07-13 01:04:16 +02:00
var C = (function () {
function C() {
}
C.x = function () {
var r = this;
return this;
};
return C;
})();