Files
tsgo/testdata/baselines/reference/submodule/conformance/classStaticBlockUseBeforeDef4.js

38 lines
720 B
TypeScript

//// [tests/cases/conformance/classes/classStaticBlock/classStaticBlockUseBeforeDef4.ts] ////
//// [classStaticBlockUseBeforeDef4.ts]
class C {
static accessor x;
static {
this.x = 1;
}
static accessor y = this.x;
static accessor z;
static {
this.z = this.y;
}
}
//// [classStaticBlockUseBeforeDef4.js]
"use strict";
class C {
static accessor x;
static {
this.x = 1;
}
static accessor y = this.x;
static accessor z;
static {
this.z = this.y;
}
}
//// [classStaticBlockUseBeforeDef4.d.ts]
declare class C {
static accessor x: number;
static accessor y: number;
static accessor z: number;
}