13 lines
No EOL
547 B
Text
13 lines
No EOL
547 B
Text
tests/cases/compiler/typeArgInference2WithError.ts(7,10): error TS2448: The type arguments cannot be inferred from the usage. Try specifying the type arguments explicitly.
|
|
|
|
|
|
==== tests/cases/compiler/typeArgInference2WithError.ts (1 errors) ====
|
|
interface Item {
|
|
name: string;
|
|
}
|
|
|
|
declare function foo<T extends Item>(x?: T, y?: T): T;
|
|
|
|
var z7 = foo("abc", 5); // Error
|
|
~~~
|
|
!!! error TS2448: The type arguments cannot be inferred from the usage. Try specifying the type arguments explicitly. |