[Issue 20828] New: __traits(getFunctionAttributes) doesn't support "scope"
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed May 13 13:57:34 UTC 2020
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 at puremagic.com
Reporter: atila.neves at 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));
----------------------------
--
More information about the Digitalmars-d-bugs
mailing list