File: inferringAnyFunctionType3.symbols

package info (click to toggle)
node-typescript 2.1.5-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 203,952 kB
  • ctags: 52,987
  • sloc: sh: 11; makefile: 5
file content (19 lines) | stat: -rw-r--r-- 814 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
=== tests/cases/compiler/inferringAnyFunctionType3.ts ===
function f<T extends ((p1: number) => number)[]>(p: T): T {
>f : Symbol(f, Decl(inferringAnyFunctionType3.ts, 0, 0))
>T : Symbol(T, Decl(inferringAnyFunctionType3.ts, 0, 11))
>p1 : Symbol(p1, Decl(inferringAnyFunctionType3.ts, 0, 23))
>p : Symbol(p, Decl(inferringAnyFunctionType3.ts, 0, 49))
>T : Symbol(T, Decl(inferringAnyFunctionType3.ts, 0, 11))
>T : Symbol(T, Decl(inferringAnyFunctionType3.ts, 0, 11))

    return p;
>p : Symbol(p, Decl(inferringAnyFunctionType3.ts, 0, 49))
}

var v = f([x => x]);
>v : Symbol(v, Decl(inferringAnyFunctionType3.ts, 4, 3))
>f : Symbol(f, Decl(inferringAnyFunctionType3.ts, 0, 0))
>x : Symbol(x, Decl(inferringAnyFunctionType3.ts, 4, 11))
>x : Symbol(x, Decl(inferringAnyFunctionType3.ts, 4, 11))