25 lines
872 B
Text
25 lines
872 B
Text
=== tests/cases/compiler/generics4NoError.ts ===
|
|
class C<T> { private x: T; }
|
|
>C : Symbol(C, Decl(generics4NoError.ts, 0, 0))
|
|
>T : Symbol(T, Decl(generics4NoError.ts, 0, 8))
|
|
>x : Symbol(x, Decl(generics4NoError.ts, 0, 12))
|
|
>T : Symbol(T, Decl(generics4NoError.ts, 0, 8))
|
|
|
|
interface X { f(): string; }
|
|
>X : Symbol(X, Decl(generics4NoError.ts, 0, 28))
|
|
>f : Symbol(f, Decl(generics4NoError.ts, 1, 13))
|
|
|
|
interface Y { f(): boolean; }
|
|
>Y : Symbol(Y, Decl(generics4NoError.ts, 1, 28))
|
|
>f : Symbol(f, Decl(generics4NoError.ts, 2, 13))
|
|
|
|
var a: C<X>;
|
|
>a : Symbol(a, Decl(generics4NoError.ts, 3, 3))
|
|
>C : Symbol(C, Decl(generics4NoError.ts, 0, 0))
|
|
>X : Symbol(X, Decl(generics4NoError.ts, 0, 28))
|
|
|
|
var b: C<Y>;
|
|
>b : Symbol(b, Decl(generics4NoError.ts, 4, 3))
|
|
>C : Symbol(C, Decl(generics4NoError.ts, 0, 0))
|
|
>Y : Symbol(Y, Decl(generics4NoError.ts, 1, 28))
|
|
|