blob: e029810b1dca870e43bb669debb648fd79996b07 [file] [log] [blame]
/*
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
}