File: inferTupleFromBindingPattern.symbols

package info (click to toggle)
node-typescript 4.9.5%2Bds1-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 533,908 kB
  • sloc: javascript: 2,018,330; makefile: 7; sh: 1
file content (14 lines) | stat: -rw-r--r-- 717 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
=== tests/cases/compiler/inferTupleFromBindingPattern.ts ===
declare function f<T>(cb: () => T): T;
>f : Symbol(f, Decl(inferTupleFromBindingPattern.ts, 0, 0))
>T : Symbol(T, Decl(inferTupleFromBindingPattern.ts, 0, 19))
>cb : Symbol(cb, Decl(inferTupleFromBindingPattern.ts, 0, 22))
>T : Symbol(T, Decl(inferTupleFromBindingPattern.ts, 0, 19))
>T : Symbol(T, Decl(inferTupleFromBindingPattern.ts, 0, 19))

const [e1, e2, e3] = f(() => [1, "hi", true]);
>e1 : Symbol(e1, Decl(inferTupleFromBindingPattern.ts, 1, 7))
>e2 : Symbol(e2, Decl(inferTupleFromBindingPattern.ts, 1, 10))
>e3 : Symbol(e3, Decl(inferTupleFromBindingPattern.ts, 1, 14))
>f : Symbol(f, Decl(inferTupleFromBindingPattern.ts, 0, 0))