Thread overview
[Issue 14874] std.traits.functionAttributes does not support the new `return` attribute
[Issue 14874] __traits(getFunctionAttributes) does not support the new `return` attribute
August 06, 2015
https://issues.dlang.org/show_bug.cgi?id=14874

--- Comment #1 from monkeyworks12@hotmail.com ---
After some investigating, it seems that the fault lies with
__traits(getFunctionAttributes).

import std.traits;

struct Test
{
    int n;

    ref int getN() return
    {
      return n;
    }
}

void main()
{
    //Prints `tuple("ref", "@system")`
    pragma(msg, __traits(getFunctionAttributes, Test.getN));
}

--
August 07, 2015
https://issues.dlang.org/show_bug.cgi?id=14874

monkeyworks12@hotmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|phobos                      |dmd
            Summary|std.traits.functionAttribut |__traits(getFunctionAttribu
                   |es does not support the new |tes) does not support the
                   |`return` attribute          |new `return` attribute

--
August 07, 2015
https://issues.dlang.org/show_bug.cgi?id=14874

monkeyworks12@hotmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|nobody@puremagic.com        |monkeyworks12@hotmail.com

--
August 12, 2015
https://issues.dlang.org/show_bug.cgi?id=14874

--- Comment #2 from github-bugzilla@puremagic.com ---
Commit pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/0c1fd7108015d06e120178b7d8de6cd7caad6283 Merge pull request #4868 from MetaLang/master

Fix Issue 14874 - __traits(getFunctionAttributes) does not support the new
`return` attribute

--
July 22, 2017
https://issues.dlang.org/show_bug.cgi?id=14874

--- Comment #3 from github-bugzilla@puremagic.com ---
Commit pushed to dmd-cxx at https://github.com/dlang/dmd

https://github.com/dlang/dmd/commit/0c1fd7108015d06e120178b7d8de6cd7caad6283 Merge pull request #4868 from MetaLang/master

--