1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/diag12063.d(11): Error: no property 'max' for type 'Foo'
5 fail_compilation/diag12063.d(14): Error: incompatible types for ((Foo()) + (1)): 'Bar' and 'int'
6 ---
7 */
8 
9 struct Foo {}
10 
11 enum Bar : Foo
12 {
13     a = Foo(),
14     b
15 }
16