[Issue 21132] New: Ff two keys in an associative array literal are equal

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Aug 7 01:48:37 UTC 2020


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

          Issue ID: 21132
           Summary: Ff two keys in an associative array literal are equal
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: minor
          Priority: P1
         Component: dlang.org
          Assignee: nobody at puremagic.com
          Reporter: porton at narod.ru

https://dlang.org/spec/expression.html#associative_array_literals
forgets to say what happens if two keys in an associative array literal are
equal.

An experiments with D shows that the last value "wins".

--


More information about the Digitalmars-d-bugs mailing list