2014-09-12 22:35:07 +02:00
|
|
|
tests/cases/compiler/functionTypeArgumentAssignmentCompat.ts(12,1): error TS2304: Cannot find name 'console'.
|
|
|
|
|
|
|
|
|
2014-07-13 01:04:16 +02:00
|
|
|
==== 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);
|
|
|
|
~~~~~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2304: Cannot find name 'console'.
|
2014-07-13 01:04:16 +02:00
|
|
|
|