-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdep_d1_ops.d
More file actions
419 lines (386 loc) · 22.5 KB
/
dep_d1_ops.d
File metadata and controls
419 lines (386 loc) · 22.5 KB
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
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
/*
REQUIRED_ARGS:
TEST_OUTPUT:
---
fail_compilation/dep_d1_ops.d(281): Error: operator `+` is not defined for type `S`
fail_compilation/dep_d1_ops.d(174): perhaps overload the operator with `auto opBinary(string op : "+")(int rhs) {}`
fail_compilation/dep_d1_ops.d(282): Error: operator `+` is not defined for type `S`
fail_compilation/dep_d1_ops.d(174): perhaps overload the operator with `auto opBinaryRight(string op : "+")(int lhs) {}`
fail_compilation/dep_d1_ops.d(283): Error: operator `-` is not defined for type `S`
fail_compilation/dep_d1_ops.d(174): perhaps overload the operator with `auto opBinary(string op : "-")(int rhs) {}`
fail_compilation/dep_d1_ops.d(284): Error: operator `-` is not defined for type `S`
fail_compilation/dep_d1_ops.d(174): perhaps overload the operator with `auto opBinaryRight(string op : "-")(int lhs) {}`
fail_compilation/dep_d1_ops.d(285): Error: operator `*` is not defined for type `S`
fail_compilation/dep_d1_ops.d(174): perhaps overload the operator with `auto opBinary(string op : "*")(int rhs) {}`
fail_compilation/dep_d1_ops.d(286): Error: operator `*` is not defined for type `S`
fail_compilation/dep_d1_ops.d(174): perhaps overload the operator with `auto opBinaryRight(string op : "*")(int lhs) {}`
fail_compilation/dep_d1_ops.d(287): Error: operator `/` is not defined for type `S`
fail_compilation/dep_d1_ops.d(174): perhaps overload the operator with `auto opBinary(string op : "/")(int rhs) {}`
fail_compilation/dep_d1_ops.d(288): Error: operator `/` is not defined for type `S`
fail_compilation/dep_d1_ops.d(174): perhaps overload the operator with `auto opBinaryRight(string op : "/")(int lhs) {}`
fail_compilation/dep_d1_ops.d(289): Error: operator `%` is not defined for type `S`
fail_compilation/dep_d1_ops.d(174): perhaps overload the operator with `auto opBinary(string op : "%")(int rhs) {}`
fail_compilation/dep_d1_ops.d(290): Error: operator `%` is not defined for type `S`
fail_compilation/dep_d1_ops.d(174): perhaps overload the operator with `auto opBinaryRight(string op : "%")(int lhs) {}`
fail_compilation/dep_d1_ops.d(292): Error: operator `&` is not defined for type `S`
fail_compilation/dep_d1_ops.d(174): perhaps overload the operator with `auto opBinary(string op : "&")(int rhs) {}`
fail_compilation/dep_d1_ops.d(293): Error: operator `|` is not defined for type `S`
fail_compilation/dep_d1_ops.d(174): perhaps overload the operator with `auto opBinary(string op : "|")(int rhs) {}`
fail_compilation/dep_d1_ops.d(294): Error: operator `^` is not defined for type `S`
fail_compilation/dep_d1_ops.d(174): perhaps overload the operator with `auto opBinary(string op : "^")(int rhs) {}`
fail_compilation/dep_d1_ops.d(296): Error: operator `<<` is not defined for type `S`
fail_compilation/dep_d1_ops.d(174): perhaps overload the operator with `auto opBinary(string op : "<<")(int rhs) {}`
fail_compilation/dep_d1_ops.d(297): Error: operator `<<` is not defined for type `S`
fail_compilation/dep_d1_ops.d(174): perhaps overload the operator with `auto opBinaryRight(string op : "<<")(int lhs) {}`
fail_compilation/dep_d1_ops.d(298): Error: operator `>>` is not defined for type `S`
fail_compilation/dep_d1_ops.d(174): perhaps overload the operator with `auto opBinary(string op : ">>")(int rhs) {}`
fail_compilation/dep_d1_ops.d(299): Error: operator `>>` is not defined for type `S`
fail_compilation/dep_d1_ops.d(174): perhaps overload the operator with `auto opBinaryRight(string op : ">>")(int lhs) {}`
fail_compilation/dep_d1_ops.d(300): Error: operator `>>>` is not defined for type `S`
fail_compilation/dep_d1_ops.d(174): perhaps overload the operator with `auto opBinary(string op : ">>>")(int rhs) {}`
fail_compilation/dep_d1_ops.d(301): Error: operator `>>>` is not defined for type `S`
fail_compilation/dep_d1_ops.d(174): perhaps overload the operator with `auto opBinaryRight(string op : ">>>")(int lhs) {}`
fail_compilation/dep_d1_ops.d(303): Error: operator `~` is not defined for type `S`
fail_compilation/dep_d1_ops.d(174): perhaps overload the operator with `auto opBinary(string op : "~")(int rhs) {}`
fail_compilation/dep_d1_ops.d(304): Error: operator `~` is not defined for type `S`
fail_compilation/dep_d1_ops.d(174): perhaps overload the operator with `auto opBinaryRight(string op : "~")(int lhs) {}`
fail_compilation/dep_d1_ops.d(306): Error: operator `+` is not defined for `S`
fail_compilation/dep_d1_ops.d(174): perhaps overload the operator with `auto opUnary(string op : "+")() {}`
fail_compilation/dep_d1_ops.d(307): Error: operator `-` is not defined for `S`
fail_compilation/dep_d1_ops.d(174): perhaps overload the operator with `auto opUnary(string op : "-")() {}`
fail_compilation/dep_d1_ops.d(308): Error: operator `~` is not defined for `S`
fail_compilation/dep_d1_ops.d(174): perhaps overload the operator with `auto opUnary(string op : "~")() {}`
fail_compilation/dep_d1_ops.d(309): Error: operator `++` not supported for `s` of type `S`
fail_compilation/dep_d1_ops.d(174): perhaps implement `auto opUnary(string op : "++")() {}` or `auto opOpAssign(string op : "+")(int) {}`
fail_compilation/dep_d1_ops.d(310): Error: operator `--` not supported for `s` of type `S`
fail_compilation/dep_d1_ops.d(174): perhaps implement `auto opUnary(string op : "--")() {}` or `auto opOpAssign(string op : "-")(int) {}`
fail_compilation/dep_d1_ops.d(311): Error: operator `*` is not defined for `S`
fail_compilation/dep_d1_ops.d(174): perhaps overload the operator with `auto opUnary(string op : "*")() {}`
fail_compilation/dep_d1_ops.d(313): Error: operator `in` is not defined for type `S`
fail_compilation/dep_d1_ops.d(174): perhaps overload the operator with `auto opBinary(string op : "in")(int rhs) {}`
fail_compilation/dep_d1_ops.d(314): Error: operator `in` is not defined for type `S`
fail_compilation/dep_d1_ops.d(174): perhaps overload the operator with `auto opBinaryRight(string op : "in")(int lhs) {}`
fail_compilation/dep_d1_ops.d(316): Error: operator `+=` not supported for `s` of type `S`
fail_compilation/dep_d1_ops.d(174): perhaps implement `auto opOpAssign(string op : "+")(int) {}`
fail_compilation/dep_d1_ops.d(317): Error: operator `-=` not supported for `s` of type `S`
fail_compilation/dep_d1_ops.d(174): perhaps implement `auto opOpAssign(string op : "-")(int) {}`
fail_compilation/dep_d1_ops.d(318): Error: operator `*=` not supported for `s` of type `S`
fail_compilation/dep_d1_ops.d(174): perhaps implement `auto opOpAssign(string op : "*")(int) {}`
fail_compilation/dep_d1_ops.d(319): Error: operator `/=` not supported for `s` of type `S`
fail_compilation/dep_d1_ops.d(174): perhaps implement `auto opOpAssign(string op : "/")(int) {}`
fail_compilation/dep_d1_ops.d(320): Error: operator `%=` not supported for `s` of type `S`
fail_compilation/dep_d1_ops.d(174): perhaps implement `auto opOpAssign(string op : "%")(int) {}`
fail_compilation/dep_d1_ops.d(321): Error: operator `&=` not supported for `s` of type `S`
fail_compilation/dep_d1_ops.d(174): perhaps implement `auto opOpAssign(string op : "&")(int) {}`
fail_compilation/dep_d1_ops.d(322): Error: operator `|=` not supported for `s` of type `S`
fail_compilation/dep_d1_ops.d(174): perhaps implement `auto opOpAssign(string op : "|")(int) {}`
fail_compilation/dep_d1_ops.d(323): Error: operator `^=` not supported for `s` of type `S`
fail_compilation/dep_d1_ops.d(174): perhaps implement `auto opOpAssign(string op : "^")(int) {}`
fail_compilation/dep_d1_ops.d(324): Error: operator `<<=` not supported for `s` of type `S`
fail_compilation/dep_d1_ops.d(174): perhaps implement `auto opOpAssign(string op : "<<")(int) {}`
fail_compilation/dep_d1_ops.d(325): Error: operator `>>=` not supported for `s` of type `S`
fail_compilation/dep_d1_ops.d(174): perhaps implement `auto opOpAssign(string op : ">>")(int) {}`
fail_compilation/dep_d1_ops.d(326): Error: operator `>>>=` not supported for `s` of type `S`
fail_compilation/dep_d1_ops.d(174): perhaps implement `auto opOpAssign(string op : ">>>")(int) {}`
fail_compilation/dep_d1_ops.d(327): Error: operator `~=` not supported for `s` of type `S`
fail_compilation/dep_d1_ops.d(174): perhaps implement `auto opOpAssign(string op : "~")(int) {}`
fail_compilation/dep_d1_ops.d(331): Error: operator `+` is not defined for type `dep_d1_ops.C`
fail_compilation/dep_d1_ops.d(225): perhaps overload the operator with `auto opBinary(string op : "+")(int rhs) {}`
fail_compilation/dep_d1_ops.d(332): Error: operator `+` is not defined for type `dep_d1_ops.C`
fail_compilation/dep_d1_ops.d(225): perhaps overload the operator with `auto opBinaryRight(string op : "+")(int lhs) {}`
fail_compilation/dep_d1_ops.d(333): Error: operator `-` is not defined for type `dep_d1_ops.C`
fail_compilation/dep_d1_ops.d(225): perhaps overload the operator with `auto opBinary(string op : "-")(int rhs) {}`
fail_compilation/dep_d1_ops.d(334): Error: operator `-` is not defined for type `dep_d1_ops.C`
fail_compilation/dep_d1_ops.d(225): perhaps overload the operator with `auto opBinaryRight(string op : "-")(int lhs) {}`
fail_compilation/dep_d1_ops.d(335): Error: operator `*` is not defined for type `dep_d1_ops.C`
fail_compilation/dep_d1_ops.d(225): perhaps overload the operator with `auto opBinary(string op : "*")(int rhs) {}`
fail_compilation/dep_d1_ops.d(336): Error: operator `*` is not defined for type `dep_d1_ops.C`
fail_compilation/dep_d1_ops.d(225): perhaps overload the operator with `auto opBinaryRight(string op : "*")(int lhs) {}`
fail_compilation/dep_d1_ops.d(337): Error: operator `/` is not defined for type `dep_d1_ops.C`
fail_compilation/dep_d1_ops.d(225): perhaps overload the operator with `auto opBinary(string op : "/")(int rhs) {}`
fail_compilation/dep_d1_ops.d(338): Error: operator `/` is not defined for type `dep_d1_ops.C`
fail_compilation/dep_d1_ops.d(225): perhaps overload the operator with `auto opBinaryRight(string op : "/")(int lhs) {}`
fail_compilation/dep_d1_ops.d(339): Error: operator `%` is not defined for type `dep_d1_ops.C`
fail_compilation/dep_d1_ops.d(225): perhaps overload the operator with `auto opBinary(string op : "%")(int rhs) {}`
fail_compilation/dep_d1_ops.d(340): Error: operator `%` is not defined for type `dep_d1_ops.C`
fail_compilation/dep_d1_ops.d(225): perhaps overload the operator with `auto opBinaryRight(string op : "%")(int lhs) {}`
fail_compilation/dep_d1_ops.d(342): Error: operator `&` is not defined for type `dep_d1_ops.C`
fail_compilation/dep_d1_ops.d(225): perhaps overload the operator with `auto opBinary(string op : "&")(int rhs) {}`
fail_compilation/dep_d1_ops.d(343): Error: operator `|` is not defined for type `dep_d1_ops.C`
fail_compilation/dep_d1_ops.d(225): perhaps overload the operator with `auto opBinary(string op : "|")(int rhs) {}`
fail_compilation/dep_d1_ops.d(344): Error: operator `^` is not defined for type `dep_d1_ops.C`
fail_compilation/dep_d1_ops.d(225): perhaps overload the operator with `auto opBinary(string op : "^")(int rhs) {}`
fail_compilation/dep_d1_ops.d(346): Error: operator `<<` is not defined for type `dep_d1_ops.C`
fail_compilation/dep_d1_ops.d(225): perhaps overload the operator with `auto opBinary(string op : "<<")(int rhs) {}`
fail_compilation/dep_d1_ops.d(347): Error: operator `<<` is not defined for type `dep_d1_ops.C`
fail_compilation/dep_d1_ops.d(225): perhaps overload the operator with `auto opBinaryRight(string op : "<<")(int lhs) {}`
fail_compilation/dep_d1_ops.d(348): Error: operator `>>` is not defined for type `dep_d1_ops.C`
fail_compilation/dep_d1_ops.d(225): perhaps overload the operator with `auto opBinary(string op : ">>")(int rhs) {}`
fail_compilation/dep_d1_ops.d(349): Error: operator `>>` is not defined for type `dep_d1_ops.C`
fail_compilation/dep_d1_ops.d(225): perhaps overload the operator with `auto opBinaryRight(string op : ">>")(int lhs) {}`
fail_compilation/dep_d1_ops.d(350): Error: operator `>>>` is not defined for type `dep_d1_ops.C`
fail_compilation/dep_d1_ops.d(225): perhaps overload the operator with `auto opBinary(string op : ">>>")(int rhs) {}`
fail_compilation/dep_d1_ops.d(351): Error: operator `>>>` is not defined for type `dep_d1_ops.C`
fail_compilation/dep_d1_ops.d(225): perhaps overload the operator with `auto opBinaryRight(string op : ">>>")(int lhs) {}`
fail_compilation/dep_d1_ops.d(353): Error: operator `~` is not defined for type `dep_d1_ops.C`
fail_compilation/dep_d1_ops.d(225): perhaps overload the operator with `auto opBinary(string op : "~")(int rhs) {}`
fail_compilation/dep_d1_ops.d(354): Error: operator `~` is not defined for type `dep_d1_ops.C`
fail_compilation/dep_d1_ops.d(225): perhaps overload the operator with `auto opBinaryRight(string op : "~")(int lhs) {}`
fail_compilation/dep_d1_ops.d(356): Error: operator `+` is not defined for `C`
fail_compilation/dep_d1_ops.d(225): perhaps overload the operator with `auto opUnary(string op : "+")() {}`
fail_compilation/dep_d1_ops.d(357): Error: operator `-` is not defined for `C`
fail_compilation/dep_d1_ops.d(225): perhaps overload the operator with `auto opUnary(string op : "-")() {}`
fail_compilation/dep_d1_ops.d(358): Error: operator `~` is not defined for `C`
fail_compilation/dep_d1_ops.d(225): perhaps overload the operator with `auto opUnary(string op : "~")() {}`
fail_compilation/dep_d1_ops.d(359): Error: operator `++` not supported for `c` of type `C`
fail_compilation/dep_d1_ops.d(225): perhaps implement `auto opUnary(string op : "++")() {}` or `auto opOpAssign(string op : "+")(int) {}`
fail_compilation/dep_d1_ops.d(360): Error: operator `--` not supported for `c` of type `C`
fail_compilation/dep_d1_ops.d(225): perhaps implement `auto opUnary(string op : "--")() {}` or `auto opOpAssign(string op : "-")(int) {}`
fail_compilation/dep_d1_ops.d(361): Error: operator `*` is not defined for `C`
fail_compilation/dep_d1_ops.d(225): perhaps overload the operator with `auto opUnary(string op : "*")() {}`
fail_compilation/dep_d1_ops.d(363): Error: operator `in` is not defined for type `dep_d1_ops.C`
fail_compilation/dep_d1_ops.d(225): perhaps overload the operator with `auto opBinary(string op : "in")(int rhs) {}`
fail_compilation/dep_d1_ops.d(364): Error: operator `in` is not defined for type `dep_d1_ops.C`
fail_compilation/dep_d1_ops.d(225): perhaps overload the operator with `auto opBinaryRight(string op : "in")(int lhs) {}`
fail_compilation/dep_d1_ops.d(366): Error: operator `+=` not supported for `c` of type `C`
fail_compilation/dep_d1_ops.d(225): perhaps implement `auto opOpAssign(string op : "+")(int) {}`
fail_compilation/dep_d1_ops.d(367): Error: operator `-=` not supported for `c` of type `C`
fail_compilation/dep_d1_ops.d(225): perhaps implement `auto opOpAssign(string op : "-")(int) {}`
fail_compilation/dep_d1_ops.d(368): Error: operator `*=` not supported for `c` of type `C`
fail_compilation/dep_d1_ops.d(225): perhaps implement `auto opOpAssign(string op : "*")(int) {}`
fail_compilation/dep_d1_ops.d(369): Error: operator `/=` not supported for `c` of type `C`
fail_compilation/dep_d1_ops.d(225): perhaps implement `auto opOpAssign(string op : "/")(int) {}`
fail_compilation/dep_d1_ops.d(370): Error: operator `%=` not supported for `c` of type `C`
fail_compilation/dep_d1_ops.d(225): perhaps implement `auto opOpAssign(string op : "%")(int) {}`
fail_compilation/dep_d1_ops.d(371): Error: operator `&=` not supported for `c` of type `C`
fail_compilation/dep_d1_ops.d(225): perhaps implement `auto opOpAssign(string op : "&")(int) {}`
fail_compilation/dep_d1_ops.d(372): Error: operator `|=` not supported for `c` of type `C`
fail_compilation/dep_d1_ops.d(225): perhaps implement `auto opOpAssign(string op : "|")(int) {}`
fail_compilation/dep_d1_ops.d(373): Error: operator `^=` not supported for `c` of type `C`
fail_compilation/dep_d1_ops.d(225): perhaps implement `auto opOpAssign(string op : "^")(int) {}`
fail_compilation/dep_d1_ops.d(374): Error: operator `<<=` not supported for `c` of type `C`
fail_compilation/dep_d1_ops.d(225): perhaps implement `auto opOpAssign(string op : "<<")(int) {}`
fail_compilation/dep_d1_ops.d(375): Error: operator `>>=` not supported for `c` of type `C`
fail_compilation/dep_d1_ops.d(225): perhaps implement `auto opOpAssign(string op : ">>")(int) {}`
fail_compilation/dep_d1_ops.d(376): Error: operator `>>>=` not supported for `c` of type `C`
fail_compilation/dep_d1_ops.d(225): perhaps implement `auto opOpAssign(string op : ">>>")(int) {}`
fail_compilation/dep_d1_ops.d(377): Error: operator `~=` not supported for `c` of type `C`
fail_compilation/dep_d1_ops.d(225): perhaps implement `auto opOpAssign(string op : "~")(int) {}`
fail_compilation/dep_d1_ops.d(386): Error: operator `~` is not defined for `NoDeprecation`
fail_compilation/dep_d1_ops.d(390): perhaps overload the operator with `auto opUnary(string op : "~")() {}`
---
*/
struct S
{
int opAdd(int i) { return 0; }
int opAdd_r(int i) { return 0; }
int opSub(int i) { return 0; }
int opSub_r(int i) { return 0; }
int opMul(int i) { return 0; }
int opMul_r(int i) { return 0; }
int opDiv(int i) { return 0; }
int opDiv_r(int i) { return 0; }
int opMod(int i) { return 0; }
int opMod_r(int i) { return 0; }
int opAnd(int i) { return 0; }
int opOr(int i) { return 0; }
int opXor(int i) { return 0; }
int opShl(int i) { return 0; }
int opShl_r(int i) { return 0; }
int opShr(int i) { return 0; }
int opShr_r(int i) { return 0; }
int opUShr(int i) { return 0; }
int opUShr_r(int i) { return 0; }
int opCat(int i) { return 0; }
int opCat_r(int i) { return 0; }
int opPos() { return 0; }
int opNeg() { return 0; }
int opCom() { return 0; }
int opPostInc() { return 0; }
int opPostDec() { return 0; }
int opStar() { return 0; }
int opIn(int i) { return 0; }
int opIn_r(int i) { return 0; }
int opAddAssign(int i) { return 0; }
int opSubAssign(int i) { return 0; }
int opMulAssign(int i) { return 0; }
int opDivAssign(int i) { return 0; }
int opModAssign(int i) { return 0; }
int opAndAssign(int i) { return 0; }
int opOrAssign(int i) { return 0; }
int opXorAssign(int i) { return 0; }
int opShlAssign(int i) { return 0; }
int opShrAssign(int i) { return 0; }
int opUShrAssign(int i) { return 0; }
int opCatAssign(int i) { return 0; }
}
class C
{
int opAdd(int i) { return 0; }
int opAdd_r(int i) { return 0; }
int opSub(int i) { return 0; }
int opSub_r(int i) { return 0; }
int opMul(int i) { return 0; }
int opMul_r(int i) { return 0; }
int opDiv(int i) { return 0; }
int opDiv_r(int i) { return 0; }
int opMod(int i) { return 0; }
int opMod_r(int i) { return 0; }
int opAnd(int i) { return 0; }
int opOr(int i) { return 0; }
int opXor(int i) { return 0; }
int opShl(int i) { return 0; }
int opShl_r(int i) { return 0; }
int opShr(int i) { return 0; }
int opShr_r(int i) { return 0; }
int opUShr(int i) { return 0; }
int opUShr_r(int i) { return 0; }
int opCat(int i) { return 0; }
int opCat_r(int i) { return 0; }
int opPos() { return 0; }
int opNeg() { return 0; }
int opCom() { return 0; }
int opPostInc() { return 0; }
int opPostDec() { return 0; }
int opStar() { return 0; }
int opIn(int i) { return 0; }
int opIn_r(int i) { return 0; }
int opAddAssign(int i) { return 0; }
int opSubAssign(int i) { return 0; }
int opMulAssign(int i) { return 0; }
int opDivAssign(int i) { return 0; }
int opModAssign(int i) { return 0; }
int opAndAssign(int i) { return 0; }
int opOrAssign(int i) { return 0; }
int opXorAssign(int i) { return 0; }
int opShlAssign(int i) { return 0; }
int opShrAssign(int i) { return 0; }
int opUShrAssign(int i) { return 0; }
int opCatAssign(int i) { return 0; }
}
void main()
{
int i;
{
S s;
i = s + 1;
i = 1 + s;
i = s - 1;
i = 1 - s;
i = s * 1;
i = 1 * s;
i = s / 1;
i = 1 / s;
i = s % 1;
i = 1 % s;
i = s & 1;
i = s | 1;
i = s ^ 1;
i = s << 1;
i = 1 << s;
i = s >> 1;
i = 1 >> s;
i = s >>> 1;
i = 1 >>> s;
i = s ~ 1;
i = 1 ~ s;
i = +s;
i = -s;
i = ~s;
s++;
s--;
i = *s;
i = s in 1;
i = 1 in s;
s += 1;
s -= 1;
s *= 1;
s /= 1;
s %= 1;
s &= 1;
s |= 1;
s ^= 1;
s <<= 1;
s >>= 1;
s >>>= 1;
s ~= 1;
}
{
C c;
i = c + 1;
i = 1 + c;
i = c - 1;
i = 1 - c;
i = c * 1;
i = 1 * c;
i = c / 1;
i = 1 / c;
i = c % 1;
i = 1 % c;
i = c & 1;
i = c | 1;
i = c ^ 1;
i = c << 1;
i = 1 << c;
i = c >> 1;
i = 1 >> c;
i = c >>> 1;
i = 1 >>> c;
i = c ~ 1;
i = 1 ~ c;
i = +c;
i = -c;
i = ~c;
c++;
c--;
i = *c;
i = c in 1;
i = 1 in c;
c += 1;
c -= 1;
c *= 1;
c /= 1;
c %= 1;
c &= 1;
c |= 1;
c ^= 1;
c <<= 1;
c >>= 1;
c >>>= 1;
c ~= 1;
}
scope nd = new NoDeprecation;
assert((42 in nd) == 0);
assert((nd in 42) == 0);
assert((nd ~ 42) == 0);
assert((42 ~ nd) == 0);
~nd;
}
/// See https://github.com/dlang/dmd/pull/10716
class NoDeprecation
{
int opIn(int i) { return 0; }
int opIn_r(int i) { return 0; }
int opCat(int i) { return 0; }
int opCat_r(int i) { return 0; }
/// This is considered because there is no `opUnary`
/// However, the other overloads (`opBinary` / `opBinaryRight`)
/// means that other operator overloads would not be considered.
int opCom() { return 0; }
int opBinary(string op)(int arg)
if (op == "in" || op == "~")
{
static if (op == "in")
return this.opIn(arg);
else static if (op == "~")
return this.opCat(arg);
}
int opBinaryRight(string op)(int arg)
if (op == "in" || op == "~")
{
static if (op == "in")
return this.opIn_r(arg);
else static if (op == "~")
return this.opCat_r(arg);
}
}