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

8 lines
411 B
Plaintext

tests/cases/compiler/genericFunctionTypedArgumentsAreFixed.ts(2,14): error TS2339: Property 'length' does not exist on type 'number'.
==== tests/cases/compiler/genericFunctionTypedArgumentsAreFixed.ts (1 errors) ====
declare function map<T, U>(f: (x: T) => U, xs: T[]): U[];
map((a) => a.length, [1]);
~~~~~~
!!! error TS2339: Property 'length' does not exist on type 'number'.