TypeScript/tests/baselines/reference/emitClassDeclarationWithConstructorPropertyAssignmentInES6.types

57 lines
774 B
Text
Raw Normal View History

=== tests/cases/conformance/es6/classDeclaration/emitClassDeclarationWithConstructorPropertyAssignmentInES6.ts ===
class C {
>C : C
x: string = "Hello world";
>x : string
}
class D {
>D : D
x: string = "Hello world";
>x : string
y: number;
>y : number
constructor() {
this.y = 10;
>this.y = 10 : number
>this.y : number
>this : D
>y : number
}
}
class E extends D{
>E : E
>D : D
z: boolean = true;
>z : boolean
}
class F extends D{
>F : F
>D : D
z: boolean = true;
>z : boolean
j: string;
>j : string
constructor() {
super();
>super() : void
>super : typeof D
this.j = "HI";
>this.j = "HI" : string
>this.j : string
>this : F
>j : string
}
}