mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
17 lines
350 B
D
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;
|
|
}
|
|
}
|