Bug 9652 – __traits(getAttributes) doesn't work with manifest constants
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-03-05T12:46:00Z
Last change time
2013-05-11T09:56:56Z
Keywords
pull
Assigned to
nobody
Creator
doob
Comments
Comment #0 by doob — 2013-03-05T12:46:35Z
The following code:
import std.typetuple;
@(3) enum foo = 3;
void main ()
{
alias TypeTuple!(__traits(getAttributes, foo)) bar;
}
Results in the following error:
test.d(7): Error: first argument is not a symbol
Comment #1 by github-bugzilla — 2013-05-11T09:02:13Z