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

17 lines
350 B
D

// https://issues.dlang.org/show_bug.cgi?id=20661
class Context
{
size_t[const(Key)] aa; /* Error: AA key type Key does not have bool opEquals(ref const Key) const */
bool* checkAll;
}
struct Key
{
Context context;
bool opEquals(ref const Key other) @safe const
{
auto c = context.checkAll;
return true;
}
}