mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00
10 lines
244 B
D
10 lines
244 B
D
/*
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/fail15089.d(10): Error: cannot implicitly convert expression `2 ^ 128` of type `int` to `byte`
|
|
---
|
|
*/
|
|
|
|
enum Pieces {Rook = 2} /* line 1 */
|
|
immutable int color = 0b10000000;
|
|
byte piece = Pieces.Rook ^ color;
|