17 lines
303 B
JavaScript
17 lines
303 B
JavaScript
//// [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;
|
|
})();
|