62 lines
877 B
Text
62 lines
877 B
Text
=== tests/cases/conformance/es6/classDeclaration/emitClassDeclarationWithPropertyAssignmentInES6.ts ===
|
|
class C {
|
|
>C : C
|
|
|
|
x: string = "Hello world";
|
|
>x : string
|
|
>"Hello world" : string
|
|
}
|
|
|
|
class D {
|
|
>D : D
|
|
|
|
x: string = "Hello world";
|
|
>x : string
|
|
>"Hello world" : string
|
|
|
|
y: number;
|
|
>y : number
|
|
|
|
constructor() {
|
|
this.y = 10;
|
|
>this.y = 10 : number
|
|
>this.y : number
|
|
>this : D
|
|
>y : number
|
|
>10 : number
|
|
}
|
|
}
|
|
|
|
class E extends D{
|
|
>E : E
|
|
>D : D
|
|
|
|
z: boolean = true;
|
|
>z : boolean
|
|
>true : boolean
|
|
}
|
|
|
|
class F extends D{
|
|
>F : F
|
|
>D : D
|
|
|
|
z: boolean = true;
|
|
>z : boolean
|
|
>true : 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
|
|
>"HI" : string
|
|
}
|
|
}
|