TypeScript/tests/baselines/reference/emitClassDeclarationWithExtensionInES6.types

65 lines
2.8 KiB
Plaintext
Raw Normal View History

=== tests/cases/conformance/es6/classDeclaration/emitClassDeclarationWithExtensionInES6.ts ===
2015-03-16 05:40:15 +01:00
class B {
2015-04-13 23:01:57 +02:00
>B : B, Symbol(B, Decl(emitClassDeclarationWithExtensionInES6.ts, 0, 0))
2015-03-16 05:40:15 +01:00
baz(a: string, y = 10) { }
2015-04-13 23:01:57 +02:00
>baz : (a: string, y?: number) => void, Symbol(baz, Decl(emitClassDeclarationWithExtensionInES6.ts, 0, 9))
>a : string, Symbol(a, Decl(emitClassDeclarationWithExtensionInES6.ts, 1, 8))
>y : number, Symbol(y, Decl(emitClassDeclarationWithExtensionInES6.ts, 1, 18))
2015-04-13 21:36:11 +02:00
>10 : number
2015-03-16 05:40:15 +01:00
}
class C extends B {
2015-04-13 23:01:57 +02:00
>C : C, Symbol(C, Decl(emitClassDeclarationWithExtensionInES6.ts, 2, 1))
>B : B, Symbol(B, Decl(emitClassDeclarationWithExtensionInES6.ts, 0, 0))
2015-03-16 05:40:15 +01:00
foo() { }
2015-04-13 23:01:57 +02:00
>foo : () => void, Symbol(foo, Decl(emitClassDeclarationWithExtensionInES6.ts, 3, 19))
2015-03-16 05:40:15 +01:00
baz(a: string, y:number) {
2015-04-13 23:01:57 +02:00
>baz : (a: string, y: number) => void, Symbol(baz, Decl(emitClassDeclarationWithExtensionInES6.ts, 4, 13))
>a : string, Symbol(a, Decl(emitClassDeclarationWithExtensionInES6.ts, 5, 8))
>y : number, Symbol(y, Decl(emitClassDeclarationWithExtensionInES6.ts, 5, 18))
2015-03-16 05:40:15 +01:00
super.baz(a, y);
>super.baz(a, y) : void
2015-04-13 23:01:57 +02:00
>super.baz : (a: string, y?: number) => void, Symbol(B.baz, Decl(emitClassDeclarationWithExtensionInES6.ts, 0, 9))
>super : B, Symbol(B, Decl(emitClassDeclarationWithExtensionInES6.ts, 0, 0))
>baz : (a: string, y?: number) => void, Symbol(B.baz, Decl(emitClassDeclarationWithExtensionInES6.ts, 0, 9))
>a : string, Symbol(a, Decl(emitClassDeclarationWithExtensionInES6.ts, 5, 8))
>y : number, Symbol(y, Decl(emitClassDeclarationWithExtensionInES6.ts, 5, 18))
2015-03-16 05:40:15 +01:00
}
}
class D extends C {
2015-04-13 23:01:57 +02:00
>D : D, Symbol(D, Decl(emitClassDeclarationWithExtensionInES6.ts, 8, 1))
>C : C, Symbol(C, Decl(emitClassDeclarationWithExtensionInES6.ts, 2, 1))
constructor() {
super();
>super() : void
2015-04-13 23:01:57 +02:00
>super : typeof C, Symbol(C, Decl(emitClassDeclarationWithExtensionInES6.ts, 2, 1))
2015-03-16 05:40:15 +01:00
}
foo() {
2015-04-13 23:01:57 +02:00
>foo : () => void, Symbol(foo, Decl(emitClassDeclarationWithExtensionInES6.ts, 12, 5))
2015-03-16 05:40:15 +01:00
super.foo();
>super.foo() : void
2015-04-13 23:01:57 +02:00
>super.foo : () => void, Symbol(C.foo, Decl(emitClassDeclarationWithExtensionInES6.ts, 3, 19))
>super : C, Symbol(C, Decl(emitClassDeclarationWithExtensionInES6.ts, 2, 1))
>foo : () => void, Symbol(C.foo, Decl(emitClassDeclarationWithExtensionInES6.ts, 3, 19))
2015-03-16 05:40:15 +01:00
}
baz() {
2015-04-13 23:01:57 +02:00
>baz : () => void, Symbol(baz, Decl(emitClassDeclarationWithExtensionInES6.ts, 16, 5))
2015-03-16 05:40:15 +01:00
super.baz("hello", 10);
>super.baz("hello", 10) : void
2015-04-13 23:01:57 +02:00
>super.baz : (a: string, y: number) => void, Symbol(C.baz, Decl(emitClassDeclarationWithExtensionInES6.ts, 4, 13))
>super : C, Symbol(C, Decl(emitClassDeclarationWithExtensionInES6.ts, 2, 1))
>baz : (a: string, y: number) => void, Symbol(C.baz, Decl(emitClassDeclarationWithExtensionInES6.ts, 4, 13))
2015-04-13 21:36:11 +02:00
>"hello" : string
>10 : number
}
}