mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
38 lines
720 B
TypeScript
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;
|
|
}
|