mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
22 lines
378 B
TypeScript
22 lines
378 B
TypeScript
//// [tests/cases/conformance/classes/classStaticBlock/classStaticBlock24.ts] ////
|
|
|
|
//// [classStaticBlock24.ts]
|
|
export class C {
|
|
static x: number;
|
|
static {
|
|
C.x = 1;
|
|
}
|
|
}
|
|
|
|
|
|
//// [classStaticBlock24.js]
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.C = void 0;
|
|
class C {
|
|
}
|
|
exports.C = C;
|
|
(() => {
|
|
C.x = 1;
|
|
})();
|