mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
25 lines
465 B
TypeScript
25 lines
465 B
TypeScript
//// [tests/cases/conformance/es6/classDeclaration/emitClassDeclarationWithStaticPropertyAssignmentInES6.ts] ////
|
|
|
|
//// [emitClassDeclarationWithStaticPropertyAssignmentInES6.ts]
|
|
class C {
|
|
static z: string = "Foo";
|
|
}
|
|
|
|
class D {
|
|
x = 20000;
|
|
static b = true;
|
|
}
|
|
|
|
|
|
//// [emitClassDeclarationWithStaticPropertyAssignmentInES6.js]
|
|
"use strict";
|
|
class C {
|
|
}
|
|
C.z = "Foo";
|
|
class D {
|
|
constructor() {
|
|
this.x = 20000;
|
|
}
|
|
}
|
|
D.b = true;
|