2014-09-12 22:35:07 +02:00
|
|
|
tests/cases/compiler/genericFunctionTypedArgumentsAreFixed.ts(2,14): error TS2339: Property 'length' does not exist on type 'number'.
|
|
|
|
|
|
|
|
|
2014-07-13 01:04:16 +02:00
|
|
|
==== tests/cases/compiler/genericFunctionTypedArgumentsAreFixed.ts (1 errors) ====
|
|
|
|
declare function map<T, U>(f: (x: T) => U, xs: T[]): U[];
|
|
|
|
map((a) => a.length, [1]);
|
|
|
|
~~~~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2339: Property 'length' does not exist on type 'number'.
|