mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
26 lines
453 B
TypeScript
26 lines
453 B
TypeScript
//// [tests/cases/conformance/classes/classStaticBlock/classStaticBlockUseBeforeDef5.ts] ////
|
|
|
|
//// [classStaticBlockUseBeforeDef5.ts]
|
|
class C {
|
|
static {
|
|
this.x = 1;
|
|
}
|
|
static accessor x;
|
|
}
|
|
|
|
|
|
//// [classStaticBlockUseBeforeDef5.js]
|
|
"use strict";
|
|
class C {
|
|
static {
|
|
this.x = 1;
|
|
}
|
|
static accessor x;
|
|
}
|
|
|
|
|
|
//// [classStaticBlockUseBeforeDef5.d.ts]
|
|
declare class C {
|
|
static accessor x: number;
|
|
}
|