Debian Codegraph @

gcc/testsuite/gdc.test/compilable/test20136.d

raw
1 // https://issues.dlang.org/show_bug.cgi?id=20136
2 class Context
3 {
4 size_t[const(Key)] aa;
5 bool checkAll;
6 }
7
8 struct Key
9 {
10 Context context;
11 int i;
12 bool opEquals(ref const Key other) const
13 {
14 if(context.checkAll && i != other.i)
15 return false;
16 return true;
17 }
18 }