[Issue 12705] New: @system is missing when using getFunctionAttributes on a typeof(function)
    via Digitalmars-d-bugs 
    digitalmars-d-bugs at puremagic.com
       
    Mon May  5 13:47:06 PDT 2014
    
    
  
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 at puremagic.com
          Reporter: andrej.mitrovich at 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.
--
    
    
More information about the Digitalmars-d-bugs
mailing list