TypeScript/tests/baselines/reference/genericFunctionCallSignatureReturnTypeMismatch.errors.txt
2014-09-12 13:35:07 -07:00

17 lines
464 B
Plaintext

tests/cases/compiler/genericFunctionCallSignatureReturnTypeMismatch.ts(10,1): error TS2304: Cannot find name 'console'.
==== 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);
~~~~~~~
!!! error TS2304: Cannot find name 'console'.