16 lines
298 B
TypeScript
16 lines
298 B
TypeScript
//// [staticsInConstructorBodies.ts]
|
|
class C {
|
|
constructor() {
|
|
static p1 = 0; // ERROR
|
|
static m1() {} // ERROR
|
|
}
|
|
}
|
|
|
|
//// [staticsInConstructorBodies.js]
|
|
var C = (function () {
|
|
function C() {
|
|
}
|
|
C.m1 = function () { }; // ERROR
|
|
C.p1 = 0; // ERROR
|
|
return C;
|
|
})();
|