TypeScript/tests/baselines/reference/genericWithCallSignatureReturningSpecialization.types
2014-08-15 14:37:48 -07:00

22 lines
325 B
Plaintext

=== tests/cases/compiler/genericWithCallSignatureReturningSpecialization.ts ===
interface B<T> {
>B : B<T>
>T : T
f(): B<number>;
>f : () => B<number>
>B : B
(value: T): void;
>value : T
>T : T
}
var x: B<boolean>;
>x : B<boolean>
>B : B
x(true); // was error
>x(true) : void
>x : B<boolean>