TypeScript/tests/baselines/reference/emitClassDeclarationWithPropertyAssignmentInES6.types

63 lines
2.3 KiB
Plaintext
Raw Normal View History

=== tests/cases/conformance/es6/classDeclaration/emitClassDeclarationWithPropertyAssignmentInES6.ts ===
class C {
2015-04-13 23:01:57 +02:00
>C : C, Symbol(C, Decl(emitClassDeclarationWithPropertyAssignmentInES6.ts, 0, 0))
x: string = "Hello world";
2015-04-13 23:01:57 +02:00
>x : string, Symbol(x, Decl(emitClassDeclarationWithPropertyAssignmentInES6.ts, 0, 9))
2015-04-13 21:36:11 +02:00
>"Hello world" : string
}
class D {
2015-04-13 23:01:57 +02:00
>D : D, Symbol(D, Decl(emitClassDeclarationWithPropertyAssignmentInES6.ts, 2, 1))
x: string = "Hello world";
2015-04-13 23:01:57 +02:00
>x : string, Symbol(x, Decl(emitClassDeclarationWithPropertyAssignmentInES6.ts, 4, 9))
2015-04-13 21:36:11 +02:00
>"Hello world" : string
y: number;
2015-04-13 23:01:57 +02:00
>y : number, Symbol(y, Decl(emitClassDeclarationWithPropertyAssignmentInES6.ts, 5, 30))
constructor() {
this.y = 10;
>this.y = 10 : number
2015-04-13 23:01:57 +02:00
>this.y : number, Symbol(y, Decl(emitClassDeclarationWithPropertyAssignmentInES6.ts, 5, 30))
>this : D, Symbol(D, Decl(emitClassDeclarationWithPropertyAssignmentInES6.ts, 2, 1))
>y : number, Symbol(y, Decl(emitClassDeclarationWithPropertyAssignmentInES6.ts, 5, 30))
2015-04-13 21:36:11 +02:00
>10 : number
}
}
class E extends D{
2015-04-13 23:01:57 +02:00
>E : E, Symbol(E, Decl(emitClassDeclarationWithPropertyAssignmentInES6.ts, 10, 1))
>D : D, Symbol(D, Decl(emitClassDeclarationWithPropertyAssignmentInES6.ts, 2, 1))
z: boolean = true;
2015-04-13 23:01:57 +02:00
>z : boolean, Symbol(z, Decl(emitClassDeclarationWithPropertyAssignmentInES6.ts, 12, 18))
2015-04-13 21:36:11 +02:00
>true : boolean
}
class F extends D{
2015-04-13 23:01:57 +02:00
>F : F, Symbol(F, Decl(emitClassDeclarationWithPropertyAssignmentInES6.ts, 14, 1))
>D : D, Symbol(D, Decl(emitClassDeclarationWithPropertyAssignmentInES6.ts, 2, 1))
z: boolean = true;
2015-04-13 23:01:57 +02:00
>z : boolean, Symbol(z, Decl(emitClassDeclarationWithPropertyAssignmentInES6.ts, 16, 18))
2015-04-13 21:36:11 +02:00
>true : boolean
j: string;
2015-04-13 23:01:57 +02:00
>j : string, Symbol(j, Decl(emitClassDeclarationWithPropertyAssignmentInES6.ts, 17, 22))
constructor() {
super();
>super() : void
2015-04-13 23:01:57 +02:00
>super : typeof D, Symbol(D, Decl(emitClassDeclarationWithPropertyAssignmentInES6.ts, 2, 1))
this.j = "HI";
>this.j = "HI" : string
2015-04-13 23:01:57 +02:00
>this.j : string, Symbol(j, Decl(emitClassDeclarationWithPropertyAssignmentInES6.ts, 17, 22))
>this : F, Symbol(F, Decl(emitClassDeclarationWithPropertyAssignmentInES6.ts, 14, 1))
>j : string, Symbol(j, Decl(emitClassDeclarationWithPropertyAssignmentInES6.ts, 17, 22))
2015-04-13 21:36:11 +02:00
>"HI" : string
}
}