[Issue 2333] Hash initializer does not work

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Sep 3 05:14:45 PDT 2008


http://d.puremagic.com/issues/show_bug.cgi?id=2333





------- Comment #4 from andrei at metalanguage.com  2008-09-03 07:14 -------
(In reply to comment #2)
> The docs says 'An AssocArrayLiteral cannot be used to statically initialize
> anything', so the code should be rejected by the compiler. Changed keyword to
> acepts-invalid.
> http://www.digitalmars.com/d/2.0/expression.html#AssocArrayLiteral
> 
> BTW I've made the same mistake, see BUG 1727.

Notice that I'm using straight initialization, not static initialization.


-- 



More information about the Digitalmars-d-bugs mailing list