mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
34 lines
599 B
TypeScript
34 lines
599 B
TypeScript
//// [tests/cases/conformance/classes/classStaticBlock/classStaticBlock18.ts] ////
|
|
|
|
//// [classStaticBlock18.ts]
|
|
function foo () {
|
|
return class {
|
|
static foo = 1;
|
|
static {
|
|
const c = class {
|
|
static bar = 2;
|
|
static {
|
|
// do
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
//// [classStaticBlock18.js]
|
|
"use strict";
|
|
function foo() {
|
|
return class {
|
|
static foo = 1;
|
|
static {
|
|
const c = class {
|
|
static bar = 2;
|
|
static {
|
|
// do
|
|
}
|
|
};
|
|
}
|
|
};
|
|
}
|