[Issue 19844] New: opEqual on const associative array doesn't work with AA literal

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat May 4 16:45:52 UTC 2019


https://issues.dlang.org/show_bug.cgi?id=19844

          Issue ID: 19844
           Summary: opEqual on const associative array doesn't work with
                    AA literal
           Product: D
           Version: D2
          Hardware: All
               URL: http://dlang.org/
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P3
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: ali.akhtarzada at gmail.com

void main()
{
    const a = [1:1];
    assert(a == [1:1]);
}

Results in Error: incompatible types for (a) == ([1:1]): const(int[int]) and
int[int]:

--


More information about the Digitalmars-d-bugs mailing list