blob: 882a809107680e060ce2b77e17fb17df930405f3 [file] [log] [blame]
/*
TEST_OUTPUT:
---
fail_compilation/diag12063.d(11): Error: no property `max` for type `Foo`, perhaps `import std.algorithm;` is needed?
fail_compilation/diag12063.d(14): Error: incompatible types for `(Foo()) + (1)`: `Bar` and `int`
---
*/
struct Foo {}
enum Bar : Foo
{
a = Foo(),
b
}