TypeScript/tests/cases/compiler/genericFunctionTypedArgumentsAreFixed.ts

2 lines
85 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
declare function map<T, U>(f: (x: T) => U, xs: T[]): U[];
map((a) => a.length, [1]);