D-Programming-Language/dmd — pull request #3506 by AndrejMitrovic (2014-04-27 21:32:26+00:00)
Title: Fixup funcAttributes.

Fixup for https://github.com/D-Programming-Language/dmd/pull/3501 which was missing support for `typeof(func)` or `typeof(&property)`.

I will add this support to the documentation as well.

Note that there is one commented-out test. For some reason a `@system` attribute goes missing when using `typeof(func)`:

```D
struct S
{
void testSystem() @system { }
}

void main()
{
pragma(msg, typeof(S.testSystem));
pragma(msg, __traits(getFunctionAttributes, S.testSystem)); // tuple("@system")
pragma(msg, __traits(getFunctionAttributes, typeof(S.testSystem))); // tuple()
}
```