www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 12705] New: system is missing when using

https://issues.dlang.org/show_bug.cgi?id=12705

          Issue ID: 12705
           Summary:  system is missing when using getFunctionAttributes on
                    a typeof(function)
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: DMD
          Assignee: nobody puremagic.com
          Reporter: andrej.mitrovich gmail.com

This reports becomes valid after
https://github.com/D-Programming-Language/dmd/pull/3506 is merged (soon).

-----
struct S
{
    void testSystem()  system { }
}

void main()
{
    // tuple(" system")
    pragma(msg, typeof(S.testSystem));

    // tuple(" system")
    pragma(msg, __traits(getFunctionAttributes, S.testSystem));

    // tuple()
    pragma(msg, __traits(getFunctionAttributes, typeof(S.testSystem)));
}
-----

This seems to be unrelated to getFunctionAttributes, but is some internal
issue.

--
May 05 2014