| 1 |
/* |
| 2 |
TEST_OUTPUT: |
| 3 |
--- |
| 4 |
fail_compilation/fail15089.d(10): Error: cannot implicitly convert expression `2 ^ 128` of type `int` to `byte` |
| 5 |
--- |
| 6 |
*/ |
| 7 |
|
| 8 |
enum Pieces {Rook = 2} /* line 1 */ |
| 9 |
immutable int color = 0b10000000; |
| 10 |
byte piece = Pieces.Rook ^ color; |