summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gdc.test/fail_compilation/diag12063.d
blob: 882a809107680e060ce2b77e17fb17df930405f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/*
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
}