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: [email protected]
Reporter: [email protected]
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.
--