d: Merge upstream dmd 568496d5b, druntime 178c44ff, phobos 574bf883b.
[official-gcc.git] / gcc / testsuite / gdc.test / compilable / test20136.d
bloba5fb8e3d504e4e21810fecd5918f565b7fda7cbe
1 // https://issues.dlang.org/show_bug.cgi?id=20136
2 class Context
4 size_t[const(Key)] aa;
5 bool checkAll;
8 struct Key
10 Context context;
11 int i;
12 bool opEquals(ref const Key other) const
14 if(context.checkAll && i != other.i)
15 return false;
16 return true;