TypeScript/tests/baselines/reference/emitClassDeclarationWithStaticPropertyAssignmentInES6.js

22 lines
333 B
TypeScript
Raw Normal View History

//// [emitClassDeclarationWithStaticPropertyAssignmentInES6.ts]
class C {
static z: string = "Foo";
}
class D {
x = 20000;
static b = true;
}
//// [emitClassDeclarationWithStaticPropertyAssignmentInES6.js]
class C {
}
C.z = "Foo";
class D {
constructor() {
this.x = 20000;
}
}
D.b = true;