http://d.puremagic.com/issues/show_bug.cgi?id=8812

           Summary: functionAttributes doesn't returns
                    const/immutable/shraed/inout attributs
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nob...@puremagic.com
        ReportedBy: zan77...@nifty.com


--- Comment #0 from SHOO <zan77...@nifty.com> 2012-10-13 07:53:55 PDT ---
This code doesn't work:
-------------------------------------
import std.traits;
class A
{
    void foo() const { }
}

void main()
{
    auto a = new A;
    static assert(functionAttributes!(a.foo) != FunctionAttribute.none);
}
-------------------------------------

functionAttributes does not consider these attributes now.
functionAttributes should consider these attributes.
Or there should be a different method to examine it. (eg. functionQualifiers

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to