2015-03-11 01:39:13 +01:00
|
|
|
//// [emitClassDeclarationWithConstructorPropertyAssignmentInES6.ts]
|
|
|
|
class C {
|
|
|
|
x: string = "Hello world";
|
|
|
|
}
|
|
|
|
|
|
|
|
class D {
|
|
|
|
x: string = "Hello world";
|
|
|
|
y: number;
|
|
|
|
constructor() {
|
|
|
|
this.y = 10;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
class E extends D{
|
|
|
|
z: boolean = true;
|
|
|
|
}
|
|
|
|
|
|
|
|
class F extends D{
|
|
|
|
z: boolean = true;
|
|
|
|
j: string;
|
|
|
|
constructor() {
|
|
|
|
super();
|
|
|
|
this.j = "HI";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//// [emitClassDeclarationWithConstructorPropertyAssignmentInES6.js]
|
|
|
|
class C {
|
|
|
|
constructor() {
|
2015-03-11 03:11:07 +01:00
|
|
|
this.x = "Hello world";
|
2015-03-11 01:39:13 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
class D {
|
|
|
|
constructor() {
|
2015-03-11 03:11:07 +01:00
|
|
|
this.x = "Hello world";
|
2015-03-11 01:39:13 +01:00
|
|
|
this.y = 10;
|
|
|
|
}
|
|
|
|
}
|
2015-03-11 03:11:07 +01:00
|
|
|
class E extends D {
|
2015-03-11 01:39:13 +01:00
|
|
|
constructor(...args) {
|
|
|
|
super(...args);
|
2015-03-11 03:11:07 +01:00
|
|
|
this.z = true;
|
2015-03-11 01:39:13 +01:00
|
|
|
}
|
|
|
|
}
|
2015-03-11 03:11:07 +01:00
|
|
|
class F extends D {
|
2015-03-11 01:39:13 +01:00
|
|
|
constructor() {
|
|
|
|
super();
|
2015-03-11 03:11:07 +01:00
|
|
|
this.z = true;
|
2015-03-11 01:39:13 +01:00
|
|
|
this.j = "HI";
|
|
|
|
}
|
|
|
|
}
|