19 lines
No EOL
444 B
Text
19 lines
No EOL
444 B
Text
tests/cases/compiler/functionTypeArgumentAssignmentCompat.ts(12,1): error TS2304: Cannot find name 'console'.
|
|
|
|
|
|
==== 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);
|
|
~~~~~~~
|
|
!!! error TS2304: Cannot find name 'console'.
|
|
|