76 lines
5 KiB
Plaintext
76 lines
5 KiB
Plaintext
=== tests/cases/conformance/es6/classDeclaration/emitClassDeclarationWithTypeArgumentAndOverloadInES6.ts ===
|
|
class B<T> {
|
|
>B : B<T>, Symbol(B, Decl(emitClassDeclarationWithTypeArgumentAndOverloadInES6.ts, 0, 0))
|
|
>T : T, Symbol(T, Decl(emitClassDeclarationWithTypeArgumentAndOverloadInES6.ts, 0, 8))
|
|
|
|
x: T;
|
|
>x : T, Symbol(x, Decl(emitClassDeclarationWithTypeArgumentAndOverloadInES6.ts, 0, 12))
|
|
>T : T, Symbol(T, Decl(emitClassDeclarationWithTypeArgumentAndOverloadInES6.ts, 0, 8))
|
|
|
|
B: T;
|
|
>B : T, Symbol(B, Decl(emitClassDeclarationWithTypeArgumentAndOverloadInES6.ts, 1, 9))
|
|
>T : T, Symbol(T, Decl(emitClassDeclarationWithTypeArgumentAndOverloadInES6.ts, 0, 8))
|
|
|
|
constructor(a: any)
|
|
>a : any, Symbol(a, Decl(emitClassDeclarationWithTypeArgumentAndOverloadInES6.ts, 4, 16))
|
|
|
|
constructor(a: any,b: T)
|
|
>a : any, Symbol(a, Decl(emitClassDeclarationWithTypeArgumentAndOverloadInES6.ts, 5, 16))
|
|
>b : T, Symbol(b, Decl(emitClassDeclarationWithTypeArgumentAndOverloadInES6.ts, 5, 23))
|
|
>T : T, Symbol(T, Decl(emitClassDeclarationWithTypeArgumentAndOverloadInES6.ts, 0, 8))
|
|
|
|
constructor(a: T) { this.B = a;}
|
|
>a : T, Symbol(a, Decl(emitClassDeclarationWithTypeArgumentAndOverloadInES6.ts, 6, 16))
|
|
>T : T, Symbol(T, Decl(emitClassDeclarationWithTypeArgumentAndOverloadInES6.ts, 0, 8))
|
|
>this.B = a : T
|
|
>this.B : T, Symbol(B, Decl(emitClassDeclarationWithTypeArgumentAndOverloadInES6.ts, 1, 9))
|
|
>this : B<T>, Symbol(B, Decl(emitClassDeclarationWithTypeArgumentAndOverloadInES6.ts, 0, 0))
|
|
>B : T, Symbol(B, Decl(emitClassDeclarationWithTypeArgumentAndOverloadInES6.ts, 1, 9))
|
|
>a : T, Symbol(a, Decl(emitClassDeclarationWithTypeArgumentAndOverloadInES6.ts, 6, 16))
|
|
|
|
foo(a: T)
|
|
>foo : { (a: T): any; (a: any): any; (b: string): any; }, Symbol(foo, Decl(emitClassDeclarationWithTypeArgumentAndOverloadInES6.ts, 6, 36), Decl(emitClassDeclarationWithTypeArgumentAndOverloadInES6.ts, 8, 13), Decl(emitClassDeclarationWithTypeArgumentAndOverloadInES6.ts, 9, 15), Decl(emitClassDeclarationWithTypeArgumentAndOverloadInES6.ts, 10, 18))
|
|
>a : T, Symbol(a, Decl(emitClassDeclarationWithTypeArgumentAndOverloadInES6.ts, 8, 8))
|
|
>T : T, Symbol(T, Decl(emitClassDeclarationWithTypeArgumentAndOverloadInES6.ts, 0, 8))
|
|
|
|
foo(a: any)
|
|
>foo : { (a: T): any; (a: any): any; (b: string): any; }, Symbol(foo, Decl(emitClassDeclarationWithTypeArgumentAndOverloadInES6.ts, 6, 36), Decl(emitClassDeclarationWithTypeArgumentAndOverloadInES6.ts, 8, 13), Decl(emitClassDeclarationWithTypeArgumentAndOverloadInES6.ts, 9, 15), Decl(emitClassDeclarationWithTypeArgumentAndOverloadInES6.ts, 10, 18))
|
|
>a : any, Symbol(a, Decl(emitClassDeclarationWithTypeArgumentAndOverloadInES6.ts, 9, 8))
|
|
|
|
foo(b: string)
|
|
>foo : { (a: T): any; (a: any): any; (b: string): any; }, Symbol(foo, Decl(emitClassDeclarationWithTypeArgumentAndOverloadInES6.ts, 6, 36), Decl(emitClassDeclarationWithTypeArgumentAndOverloadInES6.ts, 8, 13), Decl(emitClassDeclarationWithTypeArgumentAndOverloadInES6.ts, 9, 15), Decl(emitClassDeclarationWithTypeArgumentAndOverloadInES6.ts, 10, 18))
|
|
>b : string, Symbol(b, Decl(emitClassDeclarationWithTypeArgumentAndOverloadInES6.ts, 10, 8))
|
|
|
|
foo(): T {
|
|
>foo : { (a: T): any; (a: any): any; (b: string): any; }, Symbol(foo, Decl(emitClassDeclarationWithTypeArgumentAndOverloadInES6.ts, 6, 36), Decl(emitClassDeclarationWithTypeArgumentAndOverloadInES6.ts, 8, 13), Decl(emitClassDeclarationWithTypeArgumentAndOverloadInES6.ts, 9, 15), Decl(emitClassDeclarationWithTypeArgumentAndOverloadInES6.ts, 10, 18))
|
|
>T : T, Symbol(T, Decl(emitClassDeclarationWithTypeArgumentAndOverloadInES6.ts, 0, 8))
|
|
|
|
return this.x;
|
|
>this.x : T, Symbol(x, Decl(emitClassDeclarationWithTypeArgumentAndOverloadInES6.ts, 0, 12))
|
|
>this : B<T>, Symbol(B, Decl(emitClassDeclarationWithTypeArgumentAndOverloadInES6.ts, 0, 0))
|
|
>x : T, Symbol(x, Decl(emitClassDeclarationWithTypeArgumentAndOverloadInES6.ts, 0, 12))
|
|
}
|
|
|
|
get BB(): T {
|
|
>BB : T, Symbol(BB, Decl(emitClassDeclarationWithTypeArgumentAndOverloadInES6.ts, 13, 5))
|
|
>T : T, Symbol(T, Decl(emitClassDeclarationWithTypeArgumentAndOverloadInES6.ts, 0, 8))
|
|
|
|
return this.B;
|
|
>this.B : T, Symbol(B, Decl(emitClassDeclarationWithTypeArgumentAndOverloadInES6.ts, 1, 9))
|
|
>this : B<T>, Symbol(B, Decl(emitClassDeclarationWithTypeArgumentAndOverloadInES6.ts, 0, 0))
|
|
>B : T, Symbol(B, Decl(emitClassDeclarationWithTypeArgumentAndOverloadInES6.ts, 1, 9))
|
|
}
|
|
set BBWith(c: T) {
|
|
>BBWith : T, Symbol(BBWith, Decl(emitClassDeclarationWithTypeArgumentAndOverloadInES6.ts, 17, 5))
|
|
>c : T, Symbol(c, Decl(emitClassDeclarationWithTypeArgumentAndOverloadInES6.ts, 18, 15))
|
|
>T : T, Symbol(T, Decl(emitClassDeclarationWithTypeArgumentAndOverloadInES6.ts, 0, 8))
|
|
|
|
this.B = c;
|
|
>this.B = c : T
|
|
>this.B : T, Symbol(B, Decl(emitClassDeclarationWithTypeArgumentAndOverloadInES6.ts, 1, 9))
|
|
>this : B<T>, Symbol(B, Decl(emitClassDeclarationWithTypeArgumentAndOverloadInES6.ts, 0, 0))
|
|
>B : T, Symbol(B, Decl(emitClassDeclarationWithTypeArgumentAndOverloadInES6.ts, 1, 9))
|
|
>c : T, Symbol(c, Decl(emitClassDeclarationWithTypeArgumentAndOverloadInES6.ts, 18, 15))
|
|
}
|
|
}
|