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