File: restUnion2.symbols

package info (click to toggle)
node-typescript 3.3.3333-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 324,548 kB
  • sloc: makefile: 6; sh: 3
file content (26 lines) | stat: -rw-r--r-- 1,031 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
=== tests/cases/compiler/restUnion2.ts ===
declare const undefinedUnion: { n: number } | undefined;
>undefinedUnion : Symbol(undefinedUnion, Decl(restUnion2.ts, 0, 13))
>n : Symbol(n, Decl(restUnion2.ts, 0, 31))

var rest2: { n: number };
>rest2 : Symbol(rest2, Decl(restUnion2.ts, 1, 3), Decl(restUnion2.ts, 2, 5))
>n : Symbol(n, Decl(restUnion2.ts, 1, 12))

var {...rest2 } = undefinedUnion;
>rest2 : Symbol(rest2, Decl(restUnion2.ts, 1, 3), Decl(restUnion2.ts, 2, 5))
>undefinedUnion : Symbol(undefinedUnion, Decl(restUnion2.ts, 0, 13))


declare const nullUnion: { n: number } | null;
>nullUnion : Symbol(nullUnion, Decl(restUnion2.ts, 5, 13))
>n : Symbol(n, Decl(restUnion2.ts, 5, 26))

var rest3: { n: number };
>rest3 : Symbol(rest3, Decl(restUnion2.ts, 6, 3), Decl(restUnion2.ts, 7, 5))
>n : Symbol(n, Decl(restUnion2.ts, 6, 12))

var {...rest3 } = nullUnion;
>rest3 : Symbol(rest3, Decl(restUnion2.ts, 6, 3), Decl(restUnion2.ts, 7, 5))
>nullUnion : Symbol(nullUnion, Decl(restUnion2.ts, 5, 13))