mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
24 lines
452 B
TypeScript
24 lines
452 B
TypeScript
//// [tests/cases/compiler/classExpressionWithStaticProperties2.ts] ////
|
|
|
|
//// [classExpressionWithStaticProperties2.ts]
|
|
var v = class C {
|
|
static a = 1;
|
|
static b
|
|
static c = {
|
|
x: "hi"
|
|
}
|
|
static d = C.c.x + " world";
|
|
};
|
|
|
|
//// [classExpressionWithStaticProperties2.js]
|
|
"use strict";
|
|
var _a;
|
|
var v = (_a = class C {
|
|
},
|
|
_a.a = 1,
|
|
_a.c = {
|
|
x: "hi"
|
|
},
|
|
_a.d = _a.c.x + " world",
|
|
_a);
|