TypeScript/tests/baselines/reference/genericInference1.types

16 lines
532 B
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/genericInference1.ts ===
['a', 'b', 'c'].map(x => x.length);
>['a', 'b', 'c'].map(x => x.length) : number[]
>['a', 'b', 'c'].map : <U>(callbackfn: (value: string, index: number, array: string[]) => U, thisArg?: any) => U[]
2014-08-15 23:33:16 +02:00
>['a', 'b', 'c'] : string[]
2015-04-13 21:36:11 +02:00
>'a' : string
>'b' : string
>'c' : string
>map : <U>(callbackfn: (value: string, index: number, array: string[]) => U, thisArg?: any) => U[]
2014-08-15 23:33:16 +02:00
>x => x.length : (x: string) => number
>x : string
>x.length : number
>x : string
>length : number
2014-08-15 23:33:16 +02:00