2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/declFileForTypeParameters.ts ===
|
|
|
|
|
|
|
|
class C<T> {
|
2015-04-13 23:01:57 +02:00
|
|
|
>C : C<T>, Symbol(C, Decl(declFileForTypeParameters.ts, 0, 0))
|
|
|
|
>T : T, Symbol(T, Decl(declFileForTypeParameters.ts, 1, 8))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
x: T;
|
2015-04-13 23:01:57 +02:00
|
|
|
>x : T, Symbol(x, Decl(declFileForTypeParameters.ts, 1, 12))
|
|
|
|
>T : T, Symbol(T, Decl(declFileForTypeParameters.ts, 1, 8))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
foo(a: T): T {
|
2015-04-13 23:01:57 +02:00
|
|
|
>foo : (a: T) => T, Symbol(foo, Decl(declFileForTypeParameters.ts, 2, 9))
|
|
|
|
>a : T, Symbol(a, Decl(declFileForTypeParameters.ts, 3, 8))
|
|
|
|
>T : T, Symbol(T, Decl(declFileForTypeParameters.ts, 1, 8))
|
|
|
|
>T : T, Symbol(T, Decl(declFileForTypeParameters.ts, 1, 8))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
return this.x;
|
2015-04-13 23:01:57 +02:00
|
|
|
>this.x : T, Symbol(x, Decl(declFileForTypeParameters.ts, 1, 12))
|
|
|
|
>this : C<T>, Symbol(C, Decl(declFileForTypeParameters.ts, 0, 0))
|
|
|
|
>x : T, Symbol(x, Decl(declFileForTypeParameters.ts, 1, 12))
|
2014-08-15 23:33:16 +02:00
|
|
|
}
|
|
|
|
}
|