53 lines
666 B
Text
53 lines
666 B
Text
=== tests/cases/conformance/es6/classDeclaration/emitClassDeclarationWithTypeArgumentInES6.ts ===
|
|
class B<T> {
|
|
>B : B<T>
|
|
>T : T
|
|
|
|
x: T;
|
|
>x : T
|
|
>T : T
|
|
|
|
B: T;
|
|
>B : T
|
|
>T : T
|
|
|
|
constructor(a: T) { this.B = a;}
|
|
>a : T
|
|
>T : T
|
|
>this.B = a : T
|
|
>this.B : T
|
|
>this : B<T>
|
|
>B : T
|
|
>a : T
|
|
|
|
foo(): T {
|
|
>foo : () => T
|
|
>T : T
|
|
|
|
return this.x;
|
|
>this.x : T
|
|
>this : B<T>
|
|
>x : T
|
|
}
|
|
get BB(): T {
|
|
>BB : T
|
|
>T : T
|
|
|
|
return this.B;
|
|
>this.B : T
|
|
>this : B<T>
|
|
>B : T
|
|
}
|
|
set BBWith(c: T) {
|
|
>BBWith : T
|
|
>c : T
|
|
>T : T
|
|
|
|
this.B = c;
|
|
>this.B = c : T
|
|
>this.B : T
|
|
>this : B<T>
|
|
>B : T
|
|
>c : T
|
|
}
|
|
}
|