TypeScript/tests/baselines/reference/functionTypeArgumentAssignmentCompat.errors.txt
2014-07-12 17:30:19 -07:00

16 lines
315 B
Plaintext

==== tests/cases/compiler/functionTypeArgumentAssignmentCompat.ts (1 errors) ====
var f : {
<T>(x:T): T;
}
var g : {
<S>() : S[];
} = () => [];
f = g;
var s = f("str").toUpperCase();
console.log(s);
~~~~~~~
!!! Cannot find name 'console'.