[Issue 9652] New: __traits(getAttributes) doesn't work with manifest constants

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Mar 5 12:46:37 PST 2013


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

           Summary: __traits(getAttributes) doesn't work with manifest
                    constants
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: doob at me.com


--- Comment #0 from Jacob Carlborg <doob at me.com> 2013-03-05 12:46:35 PST ---
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

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list