28 lines
437 B
TypeScript
28 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;
|
|
})();
|