TypeScript/tests/baselines/reference/staticClassMemberError.js
2015-12-08 17:51:10 -08: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;
}());