| 1 |
/* TEST_OUTPUT: |
| 2 |
--- |
| 3 |
fail_compilation/b6227.d(16): Error: comparison between different enumeration types `X` and `Y`; If this behavior is intended consider using `std.conv.asOriginalType` |
| 4 |
fail_compilation/b6227.d(16): while evaluating: `static assert(!(X.O != Y.U))` |
| 5 |
fail_compilation/b6227.d(17): Error: comparison between different enumeration types `X` and `Y`; If this behavior is intended consider using `std.conv.asOriginalType` |
| 6 |
fail_compilation/b6227.d(17): while evaluating: `static assert(X.O == Y.U)` |
| 7 |
--- |
| 8 |
*/ |
| 9 |
enum X { |
| 10 |
O, |
| 11 |
R |
| 12 |
} |
| 13 |
enum Y { |
| 14 |
U |
| 15 |
} |
| 16 |
static assert(!(X.O != Y.U)); |
| 17 |
static assert( (X.O == Y.U)); |