(root)/
gcc-13.2.0/
gcc/
testsuite/
gdc.test/
compilable/
test20136.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;
    }
}