TypeScript/tests/baselines/reference/emitClassDeclarationWithStaticPropertyAssignmentInES6.js
2015-03-16 14:28:29 -07:00

22 lines
333 B
TypeScript

//// [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;