www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 21132] New: Ff two keys in an associative array literal are

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 puremagic.com
          Reporter: porton 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".

--
Aug 06 2020