dmd/compiler/test/compilable/test20136.d
2022-07-09 18:53:07 +02:00

18 lines
311 B
D

// https://issues.dlang.org/show_bug.cgi?id=20136
class Context
{
size_t[const(Key)] aa;
bool checkAll;
}
struct Key
{
Context context;
int i;
bool opEquals(ref const Key other) const
{
if(context.checkAll && i != other.i)
return false;
return true;
}
}