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

29 lines
437 B
TypeScript

//// [staticClassMemberError.ts]
class C {
static s;
public a() {
s = 1;
}
}
// just want to make sure this one doesn't crash the compiler
function Foo();
class Foo {
static bar;
}
//// [staticClassMemberError.js]
var C = (function () {
function C() {
}
C.prototype.a = function () {
s = 1;
};
return C;
})();
var Foo = (function () {
function Foo() {
}
return Foo;
})();