2015-02-26 03:15:48 +01:00
|
|
|
=== tests/cases/conformance/expressions/contextualTyping/iterableContextualTyping1.ts ===
|
|
|
|
var iter: Iterable<(x: string) => number> = [s => s.length];
|
2015-04-13 23:01:57 +02:00
|
|
|
>iter : Iterable<(x: string) => number>, Symbol(iter, Decl(iterableContextualTyping1.ts, 0, 3))
|
|
|
|
>Iterable : Iterable<T>, Symbol(Iterable, Decl(lib.d.ts, 1633, 1))
|
|
|
|
>x : string, Symbol(x, Decl(iterableContextualTyping1.ts, 0, 20))
|
2015-02-26 03:15:48 +01:00
|
|
|
>[s => s.length] : ((s: string) => number)[]
|
|
|
|
>s => s.length : (s: string) => number
|
2015-04-13 23:01:57 +02:00
|
|
|
>s : string, Symbol(s, Decl(iterableContextualTyping1.ts, 0, 45))
|
|
|
|
>s.length : number, Symbol(String.length, Decl(lib.d.ts, 414, 19))
|
|
|
|
>s : string, Symbol(s, Decl(iterableContextualTyping1.ts, 0, 45))
|
|
|
|
>length : number, Symbol(String.length, Decl(lib.d.ts, 414, 19))
|
2015-02-26 03:15:48 +01:00
|
|
|
|