14 lines
No EOL
325 B
Text
14 lines
No EOL
325 B
Text
==== tests/cases/compiler/genericFunctionCallSignatureReturnTypeMismatch.ts (1 errors) ====
|
|
interface Array<T> {}
|
|
|
|
var f : { <T>(x:T): T; }
|
|
|
|
var g : { <S>() : S[]; };
|
|
f = g;
|
|
|
|
var s = f("str").toUpperCase();
|
|
|
|
console.log(s);
|
|
~~~~~~~
|
|
!!! Cannot find name 'console'.
|
|
|