TypeScript/tests/baselines/reference/genericWithCallSignatureReturningSpecialization.types
2015-04-15 16:44:20 -07:00

23 lines
348 B
Plaintext

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