mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00
18 lines
311 B
D
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;
|
|
}
|
|
}
|