Debian Codegraph @

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

raw
1 // https://issues.dlang.org/show_bug.cgi?id=20661
2
3 class Context
4 {
5 size_t[const(Key)] aa; /* Error: AA key type Key does not have bool opEquals(ref const Key) const */
6 bool* checkAll;
7 }
8
9 struct Key
10 {
11 Context context;
12 bool opEquals(ref const Key other) @safe const
13 {
14 auto c = context.checkAll;
15 return true;
16 }
17 }