TypeScript/tests/baselines/reference/genericInference1.types

16 lines
810 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[]
2015-04-13 23:01:57 +02:00
>['a', 'b', 'c'].map : <U>(callbackfn: (value: string, index: number, array: string[]) => U, thisArg?: any) => U[], Symbol(Array.map, Decl(lib.d.ts, 1115, 92))
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
2015-04-13 23:01:57 +02:00
>map : <U>(callbackfn: (value: string, index: number, array: string[]) => U, thisArg?: any) => U[], Symbol(Array.map, Decl(lib.d.ts, 1115, 92))
2014-08-15 23:33:16 +02:00
>x => x.length : (x: string) => number
2015-04-13 23:01:57 +02:00
>x : string, Symbol(x, Decl(genericInference1.ts, 0, 20))
>x.length : number, Symbol(String.length, Decl(lib.d.ts, 414, 19))
>x : string, Symbol(x, Decl(genericInference1.ts, 0, 20))
>length : number, Symbol(String.length, Decl(lib.d.ts, 414, 19))
2014-08-15 23:33:16 +02:00