MATCH: Improve `A CMP 0 ? A : -A` set of patterns to use bitwise_equal_p.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / diag13142.d
blobbbdffb0895042eb9a12de8c0a0e4f6be1ddf070c
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/diag13142.d(25): Error: cannot implicitly convert expression `3` of type `int` to `TYPE`
5 ---
6 */
8 class Button
10 enum TYPE // button type
12 COMMAND,
13 CHECK,
14 OPTION,
18 class Toolbar
20 enum ButtonTYPE // button type
22 COMMAND = Button.TYPE.COMMAND,
23 CHECK = Button.TYPE.CHECK,
24 OPTION = Button.TYPE.OPTION,
25 DELIMETER = Button.TYPE.max + 1