Check for duplicated AA keys at compile time

Jacob Carlborg via Digitalmars-d digitalmars-d at puremagic.com
Sat Jun 3 07:59:38 PDT 2017


Would it be reasonable for the compiler to check for duplicated keys in 
an associative array literal where all the keys are known at compile 
time? For example:

auto aa = ["foo": 1, "foo": 1];

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list