www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 19038] New: Cannot compare const(T)[][] and T[][]

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

          Issue ID: 19038
           Summary: Cannot compare const(T)[][] and T[][]
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: default_357-line yahoo.de

This code works:

[cast(const) "a"] == ["a"];

This code doesn't work.

[[cast(const) "a"]] == [["a"]];

--
Jun 28 2018