TypeScript/tests/cases/compiler/typeArgInference2WithError.ts

7 lines
126 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
interface Item {
name: string;
}
declare function foo<T extends Item>(x?: T, y?: T): T;
var z7 = foo("abc", 5); // Error