2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/genericWithCallSignatureReturningSpecialization.ts ===
|
|
|
|
interface B<T> {
|
2015-04-13 23:01:57 +02:00
|
|
|
>B : B<T>, Symbol(B, Decl(genericWithCallSignatureReturningSpecialization.ts, 0, 0))
|
|
|
|
>T : T, Symbol(T, Decl(genericWithCallSignatureReturningSpecialization.ts, 0, 12))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
f(): B<number>;
|
2015-04-13 23:01:57 +02:00
|
|
|
>f : () => B<number>, Symbol(f, Decl(genericWithCallSignatureReturningSpecialization.ts, 0, 16))
|
|
|
|
>B : B<T>, Symbol(B, Decl(genericWithCallSignatureReturningSpecialization.ts, 0, 0))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
(value: T): void;
|
2015-04-13 23:01:57 +02:00
|
|
|
>value : T, Symbol(value, Decl(genericWithCallSignatureReturningSpecialization.ts, 2, 5))
|
|
|
|
>T : T, Symbol(T, Decl(genericWithCallSignatureReturningSpecialization.ts, 0, 12))
|
2014-08-15 23:33:16 +02:00
|
|
|
}
|
|
|
|
var x: B<boolean>;
|
2015-04-13 23:01:57 +02:00
|
|
|
>x : B<boolean>, Symbol(x, Decl(genericWithCallSignatureReturningSpecialization.ts, 4, 3))
|
|
|
|
>B : B<T>, Symbol(B, Decl(genericWithCallSignatureReturningSpecialization.ts, 0, 0))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
x(true); // was error
|
|
|
|
>x(true) : void
|
2015-04-13 23:01:57 +02:00
|
|
|
>x : B<boolean>, Symbol(x, Decl(genericWithCallSignatureReturningSpecialization.ts, 4, 3))
|
2015-04-13 21:36:11 +02:00
|
|
|
>true : boolean
|
2014-08-15 23:33:16 +02:00
|
|
|
|