TypeScript/tests/baselines/reference/typeArgInference2WithError.js
2014-08-14 16:36:33 -07:00

12 lines
241 B
JavaScript

//// [typeArgInference2WithError.ts]
interface Item {
name: string;
}
declare function foo<T extends Item>(x?: T, y?: T): T;
var z7 = foo("abc", 5); // Error
//// [typeArgInference2WithError.js]
var z7 = foo("abc", 5); // Error