File: intersectionOfUnionOfUnitTypes.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 (156 lines) | stat: -rw-r--r-- 8,769 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
=== tests/cases/conformance/types/intersection/intersectionOfUnionOfUnitTypes.ts ===
// @strict

const enum E { A, B, C, D, E, F }
>E : Symbol(E, Decl(intersectionOfUnionOfUnitTypes.ts, 0, 0))
>A : Symbol(E.A, Decl(intersectionOfUnionOfUnitTypes.ts, 2, 14))
>B : Symbol(E.B, Decl(intersectionOfUnionOfUnitTypes.ts, 2, 17))
>C : Symbol(E.C, Decl(intersectionOfUnionOfUnitTypes.ts, 2, 20))
>D : Symbol(E.D, Decl(intersectionOfUnionOfUnitTypes.ts, 2, 23))
>E : Symbol(E.E, Decl(intersectionOfUnionOfUnitTypes.ts, 2, 26))
>F : Symbol(E.F, Decl(intersectionOfUnionOfUnitTypes.ts, 2, 29))

let x0: ('a' | 'b' | 'c') & ('a' | 'b' | 'c');  // 'a' | 'b' | 'c'
>x0 : Symbol(x0, Decl(intersectionOfUnionOfUnitTypes.ts, 4, 3))

let x1: ('a' | 'b' | 'c') & ('b' | 'c' | 'd');  // 'b' | 'c'
>x1 : Symbol(x1, Decl(intersectionOfUnionOfUnitTypes.ts, 5, 3))

let x2: ('a' | 'b' | 'c') & ('c' | 'd' | 'e');  // 'c'
>x2 : Symbol(x2, Decl(intersectionOfUnionOfUnitTypes.ts, 6, 3))

let x3: ('a' | 'b' | 'c') & ('d' | 'e' | 'f');  // never
>x3 : Symbol(x3, Decl(intersectionOfUnionOfUnitTypes.ts, 7, 3))

let x4: ('a' | 'b' | 'c') & ('b' | 'c' | 'd') & ('c' | 'd' | 'e');  // 'c'
>x4 : Symbol(x4, Decl(intersectionOfUnionOfUnitTypes.ts, 8, 3))

let x5: ('a' | 'b' | 'c') & ('b' | 'c' | 'd') & ('c' | 'd' | 'e') & ('d' | 'e' | 'f');  // never
>x5 : Symbol(x5, Decl(intersectionOfUnionOfUnitTypes.ts, 9, 3))

let y0: (0 | 1 | 2) & (0 | 1 | 2);  // 0 | 1 | 2
>y0 : Symbol(y0, Decl(intersectionOfUnionOfUnitTypes.ts, 11, 3))

let y1: (0 | 1 | 2) & (1 | 2 | 3);  // 1 | 2
>y1 : Symbol(y1, Decl(intersectionOfUnionOfUnitTypes.ts, 12, 3))

let y2: (0 | 1 | 2) & (2 | 3 | 4);  // 2
>y2 : Symbol(y2, Decl(intersectionOfUnionOfUnitTypes.ts, 13, 3))

let y3: (0 | 1 | 2) & (3 | 4 | 5);  // never
>y3 : Symbol(y3, Decl(intersectionOfUnionOfUnitTypes.ts, 14, 3))

let y4: (0 | 1 | 2) & (1 | 2 | 3) & (2 | 3 | 4);  // 2
>y4 : Symbol(y4, Decl(intersectionOfUnionOfUnitTypes.ts, 15, 3))

let y5: (0 | 1 | 2) & (1 | 2 | 3) & (2 | 3 | 4) & (3 | 4 | 5);  // never
>y5 : Symbol(y5, Decl(intersectionOfUnionOfUnitTypes.ts, 16, 3))

let z0: (E.A | E.B | E.C) & (E.A | E.B | E.C);  // E.A | E.B | E.C
>z0 : Symbol(z0, Decl(intersectionOfUnionOfUnitTypes.ts, 18, 3))
>E : Symbol(E, Decl(intersectionOfUnionOfUnitTypes.ts, 0, 0))
>A : Symbol(E.A, Decl(intersectionOfUnionOfUnitTypes.ts, 2, 14))
>E : Symbol(E, Decl(intersectionOfUnionOfUnitTypes.ts, 0, 0))
>B : Symbol(E.B, Decl(intersectionOfUnionOfUnitTypes.ts, 2, 17))
>E : Symbol(E, Decl(intersectionOfUnionOfUnitTypes.ts, 0, 0))
>C : Symbol(E.C, Decl(intersectionOfUnionOfUnitTypes.ts, 2, 20))
>E : Symbol(E, Decl(intersectionOfUnionOfUnitTypes.ts, 0, 0))
>A : Symbol(E.A, Decl(intersectionOfUnionOfUnitTypes.ts, 2, 14))
>E : Symbol(E, Decl(intersectionOfUnionOfUnitTypes.ts, 0, 0))
>B : Symbol(E.B, Decl(intersectionOfUnionOfUnitTypes.ts, 2, 17))
>E : Symbol(E, Decl(intersectionOfUnionOfUnitTypes.ts, 0, 0))
>C : Symbol(E.C, Decl(intersectionOfUnionOfUnitTypes.ts, 2, 20))

let z1: (E.A | E.B | E.C) & (E.B | E.C | E.D);  // E.B | E.C
>z1 : Symbol(z1, Decl(intersectionOfUnionOfUnitTypes.ts, 19, 3))
>E : Symbol(E, Decl(intersectionOfUnionOfUnitTypes.ts, 0, 0))
>A : Symbol(E.A, Decl(intersectionOfUnionOfUnitTypes.ts, 2, 14))
>E : Symbol(E, Decl(intersectionOfUnionOfUnitTypes.ts, 0, 0))
>B : Symbol(E.B, Decl(intersectionOfUnionOfUnitTypes.ts, 2, 17))
>E : Symbol(E, Decl(intersectionOfUnionOfUnitTypes.ts, 0, 0))
>C : Symbol(E.C, Decl(intersectionOfUnionOfUnitTypes.ts, 2, 20))
>E : Symbol(E, Decl(intersectionOfUnionOfUnitTypes.ts, 0, 0))
>B : Symbol(E.B, Decl(intersectionOfUnionOfUnitTypes.ts, 2, 17))
>E : Symbol(E, Decl(intersectionOfUnionOfUnitTypes.ts, 0, 0))
>C : Symbol(E.C, Decl(intersectionOfUnionOfUnitTypes.ts, 2, 20))
>E : Symbol(E, Decl(intersectionOfUnionOfUnitTypes.ts, 0, 0))
>D : Symbol(E.D, Decl(intersectionOfUnionOfUnitTypes.ts, 2, 23))

let z2: (E.A | E.B | E.C) & (E.C | E.D | E.E);  // E.C
>z2 : Symbol(z2, Decl(intersectionOfUnionOfUnitTypes.ts, 20, 3))
>E : Symbol(E, Decl(intersectionOfUnionOfUnitTypes.ts, 0, 0))
>A : Symbol(E.A, Decl(intersectionOfUnionOfUnitTypes.ts, 2, 14))
>E : Symbol(E, Decl(intersectionOfUnionOfUnitTypes.ts, 0, 0))
>B : Symbol(E.B, Decl(intersectionOfUnionOfUnitTypes.ts, 2, 17))
>E : Symbol(E, Decl(intersectionOfUnionOfUnitTypes.ts, 0, 0))
>C : Symbol(E.C, Decl(intersectionOfUnionOfUnitTypes.ts, 2, 20))
>E : Symbol(E, Decl(intersectionOfUnionOfUnitTypes.ts, 0, 0))
>C : Symbol(E.C, Decl(intersectionOfUnionOfUnitTypes.ts, 2, 20))
>E : Symbol(E, Decl(intersectionOfUnionOfUnitTypes.ts, 0, 0))
>D : Symbol(E.D, Decl(intersectionOfUnionOfUnitTypes.ts, 2, 23))
>E : Symbol(E, Decl(intersectionOfUnionOfUnitTypes.ts, 0, 0))
>E : Symbol(E.E, Decl(intersectionOfUnionOfUnitTypes.ts, 2, 26))

let z3: (E.A | E.B | E.C) & (E.D | E.E | E.F);  // never
>z3 : Symbol(z3, Decl(intersectionOfUnionOfUnitTypes.ts, 21, 3))
>E : Symbol(E, Decl(intersectionOfUnionOfUnitTypes.ts, 0, 0))
>A : Symbol(E.A, Decl(intersectionOfUnionOfUnitTypes.ts, 2, 14))
>E : Symbol(E, Decl(intersectionOfUnionOfUnitTypes.ts, 0, 0))
>B : Symbol(E.B, Decl(intersectionOfUnionOfUnitTypes.ts, 2, 17))
>E : Symbol(E, Decl(intersectionOfUnionOfUnitTypes.ts, 0, 0))
>C : Symbol(E.C, Decl(intersectionOfUnionOfUnitTypes.ts, 2, 20))
>E : Symbol(E, Decl(intersectionOfUnionOfUnitTypes.ts, 0, 0))
>D : Symbol(E.D, Decl(intersectionOfUnionOfUnitTypes.ts, 2, 23))
>E : Symbol(E, Decl(intersectionOfUnionOfUnitTypes.ts, 0, 0))
>E : Symbol(E.E, Decl(intersectionOfUnionOfUnitTypes.ts, 2, 26))
>E : Symbol(E, Decl(intersectionOfUnionOfUnitTypes.ts, 0, 0))
>F : Symbol(E.F, Decl(intersectionOfUnionOfUnitTypes.ts, 2, 29))

let z4: (E.A | E.B | E.C) & (E.B | E.C | E.D) & (E.C | E.D | E.E);  // E.C
>z4 : Symbol(z4, Decl(intersectionOfUnionOfUnitTypes.ts, 22, 3))
>E : Symbol(E, Decl(intersectionOfUnionOfUnitTypes.ts, 0, 0))
>A : Symbol(E.A, Decl(intersectionOfUnionOfUnitTypes.ts, 2, 14))
>E : Symbol(E, Decl(intersectionOfUnionOfUnitTypes.ts, 0, 0))
>B : Symbol(E.B, Decl(intersectionOfUnionOfUnitTypes.ts, 2, 17))
>E : Symbol(E, Decl(intersectionOfUnionOfUnitTypes.ts, 0, 0))
>C : Symbol(E.C, Decl(intersectionOfUnionOfUnitTypes.ts, 2, 20))
>E : Symbol(E, Decl(intersectionOfUnionOfUnitTypes.ts, 0, 0))
>B : Symbol(E.B, Decl(intersectionOfUnionOfUnitTypes.ts, 2, 17))
>E : Symbol(E, Decl(intersectionOfUnionOfUnitTypes.ts, 0, 0))
>C : Symbol(E.C, Decl(intersectionOfUnionOfUnitTypes.ts, 2, 20))
>E : Symbol(E, Decl(intersectionOfUnionOfUnitTypes.ts, 0, 0))
>D : Symbol(E.D, Decl(intersectionOfUnionOfUnitTypes.ts, 2, 23))
>E : Symbol(E, Decl(intersectionOfUnionOfUnitTypes.ts, 0, 0))
>C : Symbol(E.C, Decl(intersectionOfUnionOfUnitTypes.ts, 2, 20))
>E : Symbol(E, Decl(intersectionOfUnionOfUnitTypes.ts, 0, 0))
>D : Symbol(E.D, Decl(intersectionOfUnionOfUnitTypes.ts, 2, 23))
>E : Symbol(E, Decl(intersectionOfUnionOfUnitTypes.ts, 0, 0))
>E : Symbol(E.E, Decl(intersectionOfUnionOfUnitTypes.ts, 2, 26))

let z5: (E.A | E.B | E.C) & (E.B | E.C | E.D) & (E.C | E.D | E.E) & (E.D | E.E | E.F);  // never
>z5 : Symbol(z5, Decl(intersectionOfUnionOfUnitTypes.ts, 23, 3))
>E : Symbol(E, Decl(intersectionOfUnionOfUnitTypes.ts, 0, 0))
>A : Symbol(E.A, Decl(intersectionOfUnionOfUnitTypes.ts, 2, 14))
>E : Symbol(E, Decl(intersectionOfUnionOfUnitTypes.ts, 0, 0))
>B : Symbol(E.B, Decl(intersectionOfUnionOfUnitTypes.ts, 2, 17))
>E : Symbol(E, Decl(intersectionOfUnionOfUnitTypes.ts, 0, 0))
>C : Symbol(E.C, Decl(intersectionOfUnionOfUnitTypes.ts, 2, 20))
>E : Symbol(E, Decl(intersectionOfUnionOfUnitTypes.ts, 0, 0))
>B : Symbol(E.B, Decl(intersectionOfUnionOfUnitTypes.ts, 2, 17))
>E : Symbol(E, Decl(intersectionOfUnionOfUnitTypes.ts, 0, 0))
>C : Symbol(E.C, Decl(intersectionOfUnionOfUnitTypes.ts, 2, 20))
>E : Symbol(E, Decl(intersectionOfUnionOfUnitTypes.ts, 0, 0))
>D : Symbol(E.D, Decl(intersectionOfUnionOfUnitTypes.ts, 2, 23))
>E : Symbol(E, Decl(intersectionOfUnionOfUnitTypes.ts, 0, 0))
>C : Symbol(E.C, Decl(intersectionOfUnionOfUnitTypes.ts, 2, 20))
>E : Symbol(E, Decl(intersectionOfUnionOfUnitTypes.ts, 0, 0))
>D : Symbol(E.D, Decl(intersectionOfUnionOfUnitTypes.ts, 2, 23))
>E : Symbol(E, Decl(intersectionOfUnionOfUnitTypes.ts, 0, 0))
>E : Symbol(E.E, Decl(intersectionOfUnionOfUnitTypes.ts, 2, 26))
>E : Symbol(E, Decl(intersectionOfUnionOfUnitTypes.ts, 0, 0))
>D : Symbol(E.D, Decl(intersectionOfUnionOfUnitTypes.ts, 2, 23))
>E : Symbol(E, Decl(intersectionOfUnionOfUnitTypes.ts, 0, 0))
>E : Symbol(E.E, Decl(intersectionOfUnionOfUnitTypes.ts, 2, 26))
>E : Symbol(E, Decl(intersectionOfUnionOfUnitTypes.ts, 0, 0))
>F : Symbol(E.F, Decl(intersectionOfUnionOfUnitTypes.ts, 2, 29))