mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
22 lines
364 B
TypeScript
22 lines
364 B
TypeScript
//// [tests/cases/conformance/classes/classStaticBlock/classStaticBlock9.ts] ////
|
|
|
|
//// [classStaticBlock9.ts]
|
|
class A {
|
|
static bar = A.foo + 1
|
|
static {
|
|
A.foo + 2;
|
|
}
|
|
static foo = 1;
|
|
}
|
|
|
|
|
|
//// [classStaticBlock9.js]
|
|
"use strict";
|
|
class A {
|
|
static bar = A.foo + 1;
|
|
static {
|
|
A.foo + 2;
|
|
}
|
|
static foo = 1;
|
|
}
|