12 lines
384 B
Text
12 lines
384 B
Text
=== tests/cases/conformance/expressions/contextualTyping/iterableContextualTyping1.ts ===
|
|
var iter: Iterable<(x: string) => number> = [s => s.length];
|
|
>iter : Iterable<(x: string) => number>
|
|
>Iterable : Iterable<T>
|
|
>x : string
|
|
>[s => s.length] : ((s: string) => number)[]
|
|
>s => s.length : (s: string) => number
|
|
>s : string
|
|
>s.length : number
|
|
>s : string
|
|
>length : number
|
|
|