/* TEST_OUTPUT: --- fail_compilation/diag12063.d(11): Error: no property 'max' for type 'Foo' fail_compilation/diag12063.d(14): Error: incompatible types for ((Foo()) + (1)): 'Bar' and 'int' --- */ struct Foo {} enum Bar : Foo { a = Foo(), b }