www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 20828] New: __traits(getFunctionAttributes) doesn't support

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

          Issue ID: 20828
           Summary: __traits(getFunctionAttributes) doesn't support
                    "scope"
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: atila.neves gmail.com

The code below prints tuple(" safe") when it should print tuple(" safe",
"scope"):

----------------------------
struct Struct {
    void fun()  safe scope;
}

pragma(msg, __traits(getFunctionAttributes, Struct.fun));
----------------------------

--
May 13 2020