[Issue 11637] Statically disallow sparse array literals and associative array literals with duplicate indexes
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Sun Jun 11 04:22:29 PDT 2017
https://issues.dlang.org/show_bug.cgi?id=11637
Nick Treleaven <nick at geany.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |nick at geany.org
--- Comment #1 from Nick Treleaven <nick at geany.org> ---
Also, current behaviour is inconsistent with struct named member
initialization:
struct S {
int a;
}
S s = { a: 2, a: -5 }; //Error: duplicate initializer for field 'a'
--
More information about the Digitalmars-d-bugs
mailing list