//// [typeOfThisInStaticMembers2.ts] class C { static foo = this; // error } class C2 { static foo = this; // error } //// [typeOfThisInStaticMembers2.js] var C = (function () { function C() { } C.foo = this; // error return C; })(); var C2 = (function () { function C2() { } C2.foo = this; // error return C2; })();