← Back to index
|
Original Bugzilla link
Bug 9400 – initializing enum T[n] with a single value changes its type to T
Status
RESOLVED
Resolution
WORKSFORME
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-01-26T01:41:00Z
Last change time
2013-07-12T18:56:42Z
Assigned to
nobody
Creator
nilsbossung
Comments
Comment #0
by nilsbossung — 2013-01-26T01:41:03Z
--- cat > test.d <<CODE enum int[3] x = 42; static assert(is(typeof(x) == int[3])); CODE dmd -c test.d --- test.d(2): Error: static assert (is(int == int[3u])) is false ---
Comment #1
by nilsbossung — 2013-07-12T18:56:42Z
apparently fixed in the meantime