mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
33 lines
490 B
TypeScript
33 lines
490 B
TypeScript
//// [tests/cases/conformance/classes/classStaticBlock/classStaticBlock4.ts] ////
|
|
|
|
//// [classStaticBlock4.ts]
|
|
class C {
|
|
static s1 = 1;
|
|
|
|
static {
|
|
this.s1;
|
|
C.s1;
|
|
|
|
this.s2;
|
|
C.s2;
|
|
}
|
|
|
|
static s2 = 2;
|
|
static ss2 = this.s1;
|
|
}
|
|
|
|
|
|
//// [classStaticBlock4.js]
|
|
"use strict";
|
|
class C {
|
|
static s1 = 1;
|
|
static {
|
|
this.s1;
|
|
C.s1;
|
|
this.s2;
|
|
C.s2;
|
|
}
|
|
static s2 = 2;
|
|
static ss2 = this.s1;
|
|
}
|