TypeScript/tests/cases/compiler/genericWithCallSignatureReturningSpecialization.ts

7 lines
108 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
interface B<T> {
f(): B<number>;
(value: T): void;
}
var x: B<boolean>;
x(true); // was error