/
arithmeticOperatorWithUndefinedValueAndValidOperands.errors.txt
353 lines (339 loc) · 25.3 KB
/
arithmeticOperatorWithUndefinedValueAndValidOperands.errors.txt
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
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithUndefinedValueAndValidOperands.ts(13,11): error TS18050: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithUndefinedValueAndValidOperands.ts(14,11): error TS18050: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithUndefinedValueAndValidOperands.ts(15,11): error TS18050: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithUndefinedValueAndValidOperands.ts(16,11): error TS18050: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithUndefinedValueAndValidOperands.ts(17,15): error TS18050: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithUndefinedValueAndValidOperands.ts(18,15): error TS18050: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithUndefinedValueAndValidOperands.ts(19,15): error TS18050: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithUndefinedValueAndValidOperands.ts(20,17): error TS18050: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithUndefinedValueAndValidOperands.ts(23,11): error TS18050: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithUndefinedValueAndValidOperands.ts(24,11): error TS18050: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithUndefinedValueAndValidOperands.ts(25,11): error TS18050: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithUndefinedValueAndValidOperands.ts(26,11): error TS18050: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithUndefinedValueAndValidOperands.ts(27,15): error TS18050: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithUndefinedValueAndValidOperands.ts(28,15): error TS18050: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithUndefinedValueAndValidOperands.ts(29,15): error TS18050: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithUndefinedValueAndValidOperands.ts(30,17): error TS18050: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithUndefinedValueAndValidOperands.ts(33,11): error TS18050: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithUndefinedValueAndValidOperands.ts(34,11): error TS18050: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithUndefinedValueAndValidOperands.ts(35,11): error TS18050: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithUndefinedValueAndValidOperands.ts(36,11): error TS18050: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithUndefinedValueAndValidOperands.ts(37,15): error TS18050: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithUndefinedValueAndValidOperands.ts(38,15): error TS18050: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithUndefinedValueAndValidOperands.ts(39,15): error TS18050: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithUndefinedValueAndValidOperands.ts(40,17): error TS18050: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithUndefinedValueAndValidOperands.ts(43,11): error TS18050: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithUndefinedValueAndValidOperands.ts(44,11): error TS18050: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithUndefinedValueAndValidOperands.ts(45,11): error TS18050: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithUndefinedValueAndValidOperands.ts(46,11): error TS18050: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithUndefinedValueAndValidOperands.ts(47,15): error TS18050: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithUndefinedValueAndValidOperands.ts(48,15): error TS18050: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithUndefinedValueAndValidOperands.ts(49,15): error TS18050: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithUndefinedValueAndValidOperands.ts(50,17): error TS18050: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithUndefinedValueAndValidOperands.ts(53,11): error TS18050: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithUndefinedValueAndValidOperands.ts(54,11): error TS18050: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithUndefinedValueAndValidOperands.ts(55,11): error TS18050: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithUndefinedValueAndValidOperands.ts(56,11): error TS18050: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithUndefinedValueAndValidOperands.ts(57,16): error TS18050: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithUndefinedValueAndValidOperands.ts(58,16): error TS18050: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithUndefinedValueAndValidOperands.ts(59,16): error TS18050: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithUndefinedValueAndValidOperands.ts(60,18): error TS18050: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithUndefinedValueAndValidOperands.ts(63,11): error TS18050: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithUndefinedValueAndValidOperands.ts(64,11): error TS18050: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithUndefinedValueAndValidOperands.ts(65,11): error TS18050: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithUndefinedValueAndValidOperands.ts(66,11): error TS18050: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithUndefinedValueAndValidOperands.ts(67,16): error TS18050: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithUndefinedValueAndValidOperands.ts(68,16): error TS18050: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithUndefinedValueAndValidOperands.ts(69,16): error TS18050: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithUndefinedValueAndValidOperands.ts(70,18): error TS18050: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithUndefinedValueAndValidOperands.ts(73,11): error TS18050: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithUndefinedValueAndValidOperands.ts(74,11): error TS18050: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithUndefinedValueAndValidOperands.ts(75,11): error TS18050: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithUndefinedValueAndValidOperands.ts(76,11): error TS18050: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithUndefinedValueAndValidOperands.ts(77,17): error TS18050: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithUndefinedValueAndValidOperands.ts(78,17): error TS18050: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithUndefinedValueAndValidOperands.ts(79,17): error TS18050: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithUndefinedValueAndValidOperands.ts(80,19): error TS18050: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithUndefinedValueAndValidOperands.ts(83,11): error TS18050: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithUndefinedValueAndValidOperands.ts(84,11): error TS18050: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithUndefinedValueAndValidOperands.ts(85,11): error TS18050: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithUndefinedValueAndValidOperands.ts(86,11): error TS18050: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithUndefinedValueAndValidOperands.ts(87,15): error TS18050: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithUndefinedValueAndValidOperands.ts(88,15): error TS18050: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithUndefinedValueAndValidOperands.ts(89,15): error TS18050: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithUndefinedValueAndValidOperands.ts(90,17): error TS18050: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithUndefinedValueAndValidOperands.ts(93,11): error TS18050: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithUndefinedValueAndValidOperands.ts(94,11): error TS18050: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithUndefinedValueAndValidOperands.ts(95,11): error TS18050: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithUndefinedValueAndValidOperands.ts(96,11): error TS18050: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithUndefinedValueAndValidOperands.ts(97,15): error TS18050: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithUndefinedValueAndValidOperands.ts(98,15): error TS18050: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithUndefinedValueAndValidOperands.ts(99,15): error TS18050: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithUndefinedValueAndValidOperands.ts(100,17): error TS18050: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithUndefinedValueAndValidOperands.ts(103,11): error TS18050: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithUndefinedValueAndValidOperands.ts(104,11): error TS18050: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithUndefinedValueAndValidOperands.ts(105,11): error TS18050: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithUndefinedValueAndValidOperands.ts(106,11): error TS18050: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithUndefinedValueAndValidOperands.ts(107,15): error TS18050: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithUndefinedValueAndValidOperands.ts(108,15): error TS18050: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithUndefinedValueAndValidOperands.ts(109,15): error TS18050: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithUndefinedValueAndValidOperands.ts(110,17): error TS18050: The value 'undefined' cannot be used here.
==== tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithUndefinedValueAndValidOperands.ts (80 errors) ====
// If one operand is the undefined or undefined value, it is treated as having the type of the
// other operand.
enum E {
a,
b
}
var a: any;
var b: number;
// operator *
var ra1 = undefined * a;
~~~~~~~~~
!!! error TS18050: The value 'undefined' cannot be used here.
var ra2 = undefined * b;
~~~~~~~~~
!!! error TS18050: The value 'undefined' cannot be used here.
var ra3 = undefined * 1;
~~~~~~~~~
!!! error TS18050: The value 'undefined' cannot be used here.
var ra4 = undefined * E.a;
~~~~~~~~~
!!! error TS18050: The value 'undefined' cannot be used here.
var ra5 = a * undefined;
~~~~~~~~~
!!! error TS18050: The value 'undefined' cannot be used here.
var ra6 = b * undefined;
~~~~~~~~~
!!! error TS18050: The value 'undefined' cannot be used here.
var ra7 = 0 * undefined;
~~~~~~~~~
!!! error TS18050: The value 'undefined' cannot be used here.
var ra8 = E.b * undefined;
~~~~~~~~~
!!! error TS18050: The value 'undefined' cannot be used here.
// operator /
var rb1 = undefined / a;
~~~~~~~~~
!!! error TS18050: The value 'undefined' cannot be used here.
var rb2 = undefined / b;
~~~~~~~~~
!!! error TS18050: The value 'undefined' cannot be used here.
var rb3 = undefined / 1;
~~~~~~~~~
!!! error TS18050: The value 'undefined' cannot be used here.
var rb4 = undefined / E.a;
~~~~~~~~~
!!! error TS18050: The value 'undefined' cannot be used here.
var rb5 = a / undefined;
~~~~~~~~~
!!! error TS18050: The value 'undefined' cannot be used here.
var rb6 = b / undefined;
~~~~~~~~~
!!! error TS18050: The value 'undefined' cannot be used here.
var rb7 = 0 / undefined;
~~~~~~~~~
!!! error TS18050: The value 'undefined' cannot be used here.
var rb8 = E.b / undefined;
~~~~~~~~~
!!! error TS18050: The value 'undefined' cannot be used here.
// operator %
var rc1 = undefined % a;
~~~~~~~~~
!!! error TS18050: The value 'undefined' cannot be used here.
var rc2 = undefined % b;
~~~~~~~~~
!!! error TS18050: The value 'undefined' cannot be used here.
var rc3 = undefined % 1;
~~~~~~~~~
!!! error TS18050: The value 'undefined' cannot be used here.
var rc4 = undefined % E.a;
~~~~~~~~~
!!! error TS18050: The value 'undefined' cannot be used here.
var rc5 = a % undefined;
~~~~~~~~~
!!! error TS18050: The value 'undefined' cannot be used here.
var rc6 = b % undefined;
~~~~~~~~~
!!! error TS18050: The value 'undefined' cannot be used here.
var rc7 = 0 % undefined;
~~~~~~~~~
!!! error TS18050: The value 'undefined' cannot be used here.
var rc8 = E.b % undefined;
~~~~~~~~~
!!! error TS18050: The value 'undefined' cannot be used here.
// operator -
var rd1 = undefined - a;
~~~~~~~~~
!!! error TS18050: The value 'undefined' cannot be used here.
var rd2 = undefined - b;
~~~~~~~~~
!!! error TS18050: The value 'undefined' cannot be used here.
var rd3 = undefined - 1;
~~~~~~~~~
!!! error TS18050: The value 'undefined' cannot be used here.
var rd4 = undefined - E.a;
~~~~~~~~~
!!! error TS18050: The value 'undefined' cannot be used here.
var rd5 = a - undefined;
~~~~~~~~~
!!! error TS18050: The value 'undefined' cannot be used here.
var rd6 = b - undefined;
~~~~~~~~~
!!! error TS18050: The value 'undefined' cannot be used here.
var rd7 = 0 - undefined;
~~~~~~~~~
!!! error TS18050: The value 'undefined' cannot be used here.
var rd8 = E.b - undefined;
~~~~~~~~~
!!! error TS18050: The value 'undefined' cannot be used here.
// operator <<
var re1 = undefined << a;
~~~~~~~~~
!!! error TS18050: The value 'undefined' cannot be used here.
var re2 = undefined << b;
~~~~~~~~~
!!! error TS18050: The value 'undefined' cannot be used here.
var re3 = undefined << 1;
~~~~~~~~~
!!! error TS18050: The value 'undefined' cannot be used here.
var re4 = undefined << E.a;
~~~~~~~~~
!!! error TS18050: The value 'undefined' cannot be used here.
var re5 = a << undefined;
~~~~~~~~~
!!! error TS18050: The value 'undefined' cannot be used here.
var re6 = b << undefined;
~~~~~~~~~
!!! error TS18050: The value 'undefined' cannot be used here.
var re7 = 0 << undefined;
~~~~~~~~~
!!! error TS18050: The value 'undefined' cannot be used here.
var re8 = E.b << undefined;
~~~~~~~~~
!!! error TS18050: The value 'undefined' cannot be used here.
// operator >>
var rf1 = undefined >> a;
~~~~~~~~~
!!! error TS18050: The value 'undefined' cannot be used here.
var rf2 = undefined >> b;
~~~~~~~~~
!!! error TS18050: The value 'undefined' cannot be used here.
var rf3 = undefined >> 1;
~~~~~~~~~
!!! error TS18050: The value 'undefined' cannot be used here.
var rf4 = undefined >> E.a;
~~~~~~~~~
!!! error TS18050: The value 'undefined' cannot be used here.
var rf5 = a >> undefined;
~~~~~~~~~
!!! error TS18050: The value 'undefined' cannot be used here.
var rf6 = b >> undefined;
~~~~~~~~~
!!! error TS18050: The value 'undefined' cannot be used here.
var rf7 = 0 >> undefined;
~~~~~~~~~
!!! error TS18050: The value 'undefined' cannot be used here.
var rf8 = E.b >> undefined;
~~~~~~~~~
!!! error TS18050: The value 'undefined' cannot be used here.
// operator >>>
var rg1 = undefined >>> a;
~~~~~~~~~
!!! error TS18050: The value 'undefined' cannot be used here.
var rg2 = undefined >>> b;
~~~~~~~~~
!!! error TS18050: The value 'undefined' cannot be used here.
var rg3 = undefined >>> 1;
~~~~~~~~~
!!! error TS18050: The value 'undefined' cannot be used here.
var rg4 = undefined >>> E.a;
~~~~~~~~~
!!! error TS18050: The value 'undefined' cannot be used here.
var rg5 = a >>> undefined;
~~~~~~~~~
!!! error TS18050: The value 'undefined' cannot be used here.
var rg6 = b >>> undefined;
~~~~~~~~~
!!! error TS18050: The value 'undefined' cannot be used here.
var rg7 = 0 >>> undefined;
~~~~~~~~~
!!! error TS18050: The value 'undefined' cannot be used here.
var rg8 = E.b >>> undefined;
~~~~~~~~~
!!! error TS18050: The value 'undefined' cannot be used here.
// operator &
var rh1 = undefined & a;
~~~~~~~~~
!!! error TS18050: The value 'undefined' cannot be used here.
var rh2 = undefined & b;
~~~~~~~~~
!!! error TS18050: The value 'undefined' cannot be used here.
var rh3 = undefined & 1;
~~~~~~~~~
!!! error TS18050: The value 'undefined' cannot be used here.
var rh4 = undefined & E.a;
~~~~~~~~~
!!! error TS18050: The value 'undefined' cannot be used here.
var rh5 = a & undefined;
~~~~~~~~~
!!! error TS18050: The value 'undefined' cannot be used here.
var rh6 = b & undefined;
~~~~~~~~~
!!! error TS18050: The value 'undefined' cannot be used here.
var rh7 = 0 & undefined;
~~~~~~~~~
!!! error TS18050: The value 'undefined' cannot be used here.
var rh8 = E.b & undefined;
~~~~~~~~~
!!! error TS18050: The value 'undefined' cannot be used here.
// operator ^
var ri1 = undefined ^ a;
~~~~~~~~~
!!! error TS18050: The value 'undefined' cannot be used here.
var ri2 = undefined ^ b;
~~~~~~~~~
!!! error TS18050: The value 'undefined' cannot be used here.
var ri3 = undefined ^ 1;
~~~~~~~~~
!!! error TS18050: The value 'undefined' cannot be used here.
var ri4 = undefined ^ E.a;
~~~~~~~~~
!!! error TS18050: The value 'undefined' cannot be used here.
var ri5 = a ^ undefined;
~~~~~~~~~
!!! error TS18050: The value 'undefined' cannot be used here.
var ri6 = b ^ undefined;
~~~~~~~~~
!!! error TS18050: The value 'undefined' cannot be used here.
var ri7 = 0 ^ undefined;
~~~~~~~~~
!!! error TS18050: The value 'undefined' cannot be used here.
var ri8 = E.b ^ undefined;
~~~~~~~~~
!!! error TS18050: The value 'undefined' cannot be used here.
// operator |
var rj1 = undefined | a;
~~~~~~~~~
!!! error TS18050: The value 'undefined' cannot be used here.
var rj2 = undefined | b;
~~~~~~~~~
!!! error TS18050: The value 'undefined' cannot be used here.
var rj3 = undefined | 1;
~~~~~~~~~
!!! error TS18050: The value 'undefined' cannot be used here.
var rj4 = undefined | E.a;
~~~~~~~~~
!!! error TS18050: The value 'undefined' cannot be used here.
var rj5 = a | undefined;
~~~~~~~~~
!!! error TS18050: The value 'undefined' cannot be used here.
var rj6 = b | undefined;
~~~~~~~~~
!!! error TS18050: The value 'undefined' cannot be used here.
var rj7 = 0 | undefined;
~~~~~~~~~
!!! error TS18050: The value 'undefined' cannot be used here.
var rj8 = E.b | undefined;
~~~~~~~~~
!!! error TS18050: The value 'undefined' cannot be used here.