forked from microsoft/TypeScript
-
Notifications
You must be signed in to change notification settings - Fork 0
/
arithmeticOperatorWithOnlyNullValueOrUndefinedValue.errors.txt
302 lines (291 loc) · 23.4 KB
/
arithmeticOperatorWithOnlyNullValueOrUndefinedValue.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
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithOnlyNullValueOrUndefinedValue.ts(2,11): error TS18049: The value 'null' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithOnlyNullValueOrUndefinedValue.ts(2,18): error TS18049: The value 'null' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithOnlyNullValueOrUndefinedValue.ts(3,11): error TS18049: The value 'null' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithOnlyNullValueOrUndefinedValue.ts(3,18): error TS18049: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithOnlyNullValueOrUndefinedValue.ts(4,11): error TS18049: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithOnlyNullValueOrUndefinedValue.ts(4,23): error TS18049: The value 'null' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithOnlyNullValueOrUndefinedValue.ts(5,11): error TS18049: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithOnlyNullValueOrUndefinedValue.ts(5,23): error TS18049: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithOnlyNullValueOrUndefinedValue.ts(8,11): error TS18049: The value 'null' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithOnlyNullValueOrUndefinedValue.ts(8,18): error TS18049: The value 'null' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithOnlyNullValueOrUndefinedValue.ts(9,11): error TS18049: The value 'null' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithOnlyNullValueOrUndefinedValue.ts(9,18): error TS18049: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithOnlyNullValueOrUndefinedValue.ts(10,11): error TS18049: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithOnlyNullValueOrUndefinedValue.ts(10,23): error TS18049: The value 'null' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithOnlyNullValueOrUndefinedValue.ts(11,11): error TS18049: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithOnlyNullValueOrUndefinedValue.ts(11,23): error TS18049: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithOnlyNullValueOrUndefinedValue.ts(14,11): error TS18049: The value 'null' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithOnlyNullValueOrUndefinedValue.ts(14,18): error TS18049: The value 'null' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithOnlyNullValueOrUndefinedValue.ts(15,11): error TS18049: The value 'null' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithOnlyNullValueOrUndefinedValue.ts(15,18): error TS18049: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithOnlyNullValueOrUndefinedValue.ts(16,11): error TS18049: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithOnlyNullValueOrUndefinedValue.ts(16,23): error TS18049: The value 'null' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithOnlyNullValueOrUndefinedValue.ts(17,11): error TS18049: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithOnlyNullValueOrUndefinedValue.ts(17,23): error TS18049: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithOnlyNullValueOrUndefinedValue.ts(20,11): error TS18049: The value 'null' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithOnlyNullValueOrUndefinedValue.ts(20,18): error TS18049: The value 'null' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithOnlyNullValueOrUndefinedValue.ts(21,11): error TS18049: The value 'null' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithOnlyNullValueOrUndefinedValue.ts(21,18): error TS18049: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithOnlyNullValueOrUndefinedValue.ts(22,11): error TS18049: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithOnlyNullValueOrUndefinedValue.ts(22,23): error TS18049: The value 'null' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithOnlyNullValueOrUndefinedValue.ts(23,11): error TS18049: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithOnlyNullValueOrUndefinedValue.ts(23,23): error TS18049: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithOnlyNullValueOrUndefinedValue.ts(26,11): error TS18049: The value 'null' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithOnlyNullValueOrUndefinedValue.ts(26,19): error TS18049: The value 'null' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithOnlyNullValueOrUndefinedValue.ts(27,11): error TS18049: The value 'null' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithOnlyNullValueOrUndefinedValue.ts(27,19): error TS18049: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithOnlyNullValueOrUndefinedValue.ts(28,11): error TS18049: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithOnlyNullValueOrUndefinedValue.ts(28,24): error TS18049: The value 'null' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithOnlyNullValueOrUndefinedValue.ts(29,11): error TS18049: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithOnlyNullValueOrUndefinedValue.ts(29,24): error TS18049: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithOnlyNullValueOrUndefinedValue.ts(32,11): error TS18049: The value 'null' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithOnlyNullValueOrUndefinedValue.ts(32,19): error TS18049: The value 'null' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithOnlyNullValueOrUndefinedValue.ts(33,11): error TS18049: The value 'null' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithOnlyNullValueOrUndefinedValue.ts(33,19): error TS18049: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithOnlyNullValueOrUndefinedValue.ts(34,11): error TS18049: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithOnlyNullValueOrUndefinedValue.ts(34,24): error TS18049: The value 'null' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithOnlyNullValueOrUndefinedValue.ts(35,11): error TS18049: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithOnlyNullValueOrUndefinedValue.ts(35,24): error TS18049: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithOnlyNullValueOrUndefinedValue.ts(38,11): error TS18049: The value 'null' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithOnlyNullValueOrUndefinedValue.ts(38,20): error TS18049: The value 'null' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithOnlyNullValueOrUndefinedValue.ts(39,11): error TS18049: The value 'null' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithOnlyNullValueOrUndefinedValue.ts(39,20): error TS18049: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithOnlyNullValueOrUndefinedValue.ts(40,11): error TS18049: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithOnlyNullValueOrUndefinedValue.ts(40,25): error TS18049: The value 'null' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithOnlyNullValueOrUndefinedValue.ts(41,11): error TS18049: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithOnlyNullValueOrUndefinedValue.ts(41,25): error TS18049: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithOnlyNullValueOrUndefinedValue.ts(44,11): error TS18049: The value 'null' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithOnlyNullValueOrUndefinedValue.ts(44,18): error TS18049: The value 'null' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithOnlyNullValueOrUndefinedValue.ts(45,11): error TS18049: The value 'null' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithOnlyNullValueOrUndefinedValue.ts(45,18): error TS18049: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithOnlyNullValueOrUndefinedValue.ts(46,11): error TS18049: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithOnlyNullValueOrUndefinedValue.ts(46,23): error TS18049: The value 'null' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithOnlyNullValueOrUndefinedValue.ts(47,11): error TS18049: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithOnlyNullValueOrUndefinedValue.ts(47,23): error TS18049: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithOnlyNullValueOrUndefinedValue.ts(50,11): error TS18049: The value 'null' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithOnlyNullValueOrUndefinedValue.ts(50,18): error TS18049: The value 'null' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithOnlyNullValueOrUndefinedValue.ts(51,11): error TS18049: The value 'null' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithOnlyNullValueOrUndefinedValue.ts(51,18): error TS18049: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithOnlyNullValueOrUndefinedValue.ts(52,11): error TS18049: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithOnlyNullValueOrUndefinedValue.ts(52,23): error TS18049: The value 'null' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithOnlyNullValueOrUndefinedValue.ts(53,11): error TS18049: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithOnlyNullValueOrUndefinedValue.ts(53,23): error TS18049: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithOnlyNullValueOrUndefinedValue.ts(56,11): error TS18049: The value 'null' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithOnlyNullValueOrUndefinedValue.ts(56,18): error TS18049: The value 'null' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithOnlyNullValueOrUndefinedValue.ts(57,11): error TS18049: The value 'null' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithOnlyNullValueOrUndefinedValue.ts(57,18): error TS18049: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithOnlyNullValueOrUndefinedValue.ts(58,11): error TS18049: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithOnlyNullValueOrUndefinedValue.ts(58,23): error TS18049: The value 'null' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithOnlyNullValueOrUndefinedValue.ts(59,11): error TS18049: The value 'undefined' cannot be used here.
tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithOnlyNullValueOrUndefinedValue.ts(59,23): error TS18049: The value 'undefined' cannot be used here.
==== tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithOnlyNullValueOrUndefinedValue.ts (80 errors) ====
// operator *
var ra1 = null * null;
~~~~
!!! error TS18049: The value 'null' cannot be used here.
~~~~
!!! error TS18049: The value 'null' cannot be used here.
var ra2 = null * undefined;
~~~~
!!! error TS18049: The value 'null' cannot be used here.
~~~~~~~~~
!!! error TS18049: The value 'undefined' cannot be used here.
var ra3 = undefined * null;
~~~~~~~~~
!!! error TS18049: The value 'undefined' cannot be used here.
~~~~
!!! error TS18049: The value 'null' cannot be used here.
var ra4 = undefined * undefined;
~~~~~~~~~
!!! error TS18049: The value 'undefined' cannot be used here.
~~~~~~~~~
!!! error TS18049: The value 'undefined' cannot be used here.
// operator /
var rb1 = null / null;
~~~~
!!! error TS18049: The value 'null' cannot be used here.
~~~~
!!! error TS18049: The value 'null' cannot be used here.
var rb2 = null / undefined;
~~~~
!!! error TS18049: The value 'null' cannot be used here.
~~~~~~~~~
!!! error TS18049: The value 'undefined' cannot be used here.
var rb3 = undefined / null;
~~~~~~~~~
!!! error TS18049: The value 'undefined' cannot be used here.
~~~~
!!! error TS18049: The value 'null' cannot be used here.
var rb4 = undefined / undefined;
~~~~~~~~~
!!! error TS18049: The value 'undefined' cannot be used here.
~~~~~~~~~
!!! error TS18049: The value 'undefined' cannot be used here.
// operator %
var rc1 = null % null;
~~~~
!!! error TS18049: The value 'null' cannot be used here.
~~~~
!!! error TS18049: The value 'null' cannot be used here.
var rc2 = null % undefined;
~~~~
!!! error TS18049: The value 'null' cannot be used here.
~~~~~~~~~
!!! error TS18049: The value 'undefined' cannot be used here.
var rc3 = undefined % null;
~~~~~~~~~
!!! error TS18049: The value 'undefined' cannot be used here.
~~~~
!!! error TS18049: The value 'null' cannot be used here.
var rc4 = undefined % undefined;
~~~~~~~~~
!!! error TS18049: The value 'undefined' cannot be used here.
~~~~~~~~~
!!! error TS18049: The value 'undefined' cannot be used here.
// operator -
var rd1 = null - null;
~~~~
!!! error TS18049: The value 'null' cannot be used here.
~~~~
!!! error TS18049: The value 'null' cannot be used here.
var rd2 = null - undefined;
~~~~
!!! error TS18049: The value 'null' cannot be used here.
~~~~~~~~~
!!! error TS18049: The value 'undefined' cannot be used here.
var rd3 = undefined - null;
~~~~~~~~~
!!! error TS18049: The value 'undefined' cannot be used here.
~~~~
!!! error TS18049: The value 'null' cannot be used here.
var rd4 = undefined - undefined;
~~~~~~~~~
!!! error TS18049: The value 'undefined' cannot be used here.
~~~~~~~~~
!!! error TS18049: The value 'undefined' cannot be used here.
// operator <<
var re1 = null << null;
~~~~
!!! error TS18049: The value 'null' cannot be used here.
~~~~
!!! error TS18049: The value 'null' cannot be used here.
var re2 = null << undefined;
~~~~
!!! error TS18049: The value 'null' cannot be used here.
~~~~~~~~~
!!! error TS18049: The value 'undefined' cannot be used here.
var re3 = undefined << null;
~~~~~~~~~
!!! error TS18049: The value 'undefined' cannot be used here.
~~~~
!!! error TS18049: The value 'null' cannot be used here.
var re4 = undefined << undefined;
~~~~~~~~~
!!! error TS18049: The value 'undefined' cannot be used here.
~~~~~~~~~
!!! error TS18049: The value 'undefined' cannot be used here.
// operator >>
var rf1 = null >> null;
~~~~
!!! error TS18049: The value 'null' cannot be used here.
~~~~
!!! error TS18049: The value 'null' cannot be used here.
var rf2 = null >> undefined;
~~~~
!!! error TS18049: The value 'null' cannot be used here.
~~~~~~~~~
!!! error TS18049: The value 'undefined' cannot be used here.
var rf3 = undefined >> null;
~~~~~~~~~
!!! error TS18049: The value 'undefined' cannot be used here.
~~~~
!!! error TS18049: The value 'null' cannot be used here.
var rf4 = undefined >> undefined;
~~~~~~~~~
!!! error TS18049: The value 'undefined' cannot be used here.
~~~~~~~~~
!!! error TS18049: The value 'undefined' cannot be used here.
// operator >>>
var rg1 = null >>> null;
~~~~
!!! error TS18049: The value 'null' cannot be used here.
~~~~
!!! error TS18049: The value 'null' cannot be used here.
var rg2 = null >>> undefined;
~~~~
!!! error TS18049: The value 'null' cannot be used here.
~~~~~~~~~
!!! error TS18049: The value 'undefined' cannot be used here.
var rg3 = undefined >>> null;
~~~~~~~~~
!!! error TS18049: The value 'undefined' cannot be used here.
~~~~
!!! error TS18049: The value 'null' cannot be used here.
var rg4 = undefined >>> undefined;
~~~~~~~~~
!!! error TS18049: The value 'undefined' cannot be used here.
~~~~~~~~~
!!! error TS18049: The value 'undefined' cannot be used here.
// operator &
var rh1 = null & null;
~~~~
!!! error TS18049: The value 'null' cannot be used here.
~~~~
!!! error TS18049: The value 'null' cannot be used here.
var rh2 = null & undefined;
~~~~
!!! error TS18049: The value 'null' cannot be used here.
~~~~~~~~~
!!! error TS18049: The value 'undefined' cannot be used here.
var rh3 = undefined & null;
~~~~~~~~~
!!! error TS18049: The value 'undefined' cannot be used here.
~~~~
!!! error TS18049: The value 'null' cannot be used here.
var rh4 = undefined & undefined;
~~~~~~~~~
!!! error TS18049: The value 'undefined' cannot be used here.
~~~~~~~~~
!!! error TS18049: The value 'undefined' cannot be used here.
// operator ^
var ri1 = null ^ null;
~~~~
!!! error TS18049: The value 'null' cannot be used here.
~~~~
!!! error TS18049: The value 'null' cannot be used here.
var ri2 = null ^ undefined;
~~~~
!!! error TS18049: The value 'null' cannot be used here.
~~~~~~~~~
!!! error TS18049: The value 'undefined' cannot be used here.
var ri3 = undefined ^ null;
~~~~~~~~~
!!! error TS18049: The value 'undefined' cannot be used here.
~~~~
!!! error TS18049: The value 'null' cannot be used here.
var ri4 = undefined ^ undefined;
~~~~~~~~~
!!! error TS18049: The value 'undefined' cannot be used here.
~~~~~~~~~
!!! error TS18049: The value 'undefined' cannot be used here.
// operator |
var rj1 = null | null;
~~~~
!!! error TS18049: The value 'null' cannot be used here.
~~~~
!!! error TS18049: The value 'null' cannot be used here.
var rj2 = null | undefined;
~~~~
!!! error TS18049: The value 'null' cannot be used here.
~~~~~~~~~
!!! error TS18049: The value 'undefined' cannot be used here.
var rj3 = undefined | null;
~~~~~~~~~
!!! error TS18049: The value 'undefined' cannot be used here.
~~~~
!!! error TS18049: The value 'null' cannot be used here.
var rj4 = undefined | undefined;
~~~~~~~~~
!!! error TS18049: The value 'undefined' cannot be used here.
~~~~~~~~~
!!! error TS18049: The value 'undefined' cannot be used here.