digitalmars.D.bugs - [Issue 8812] New: functionAttributes doesn't returns const/immutable/shraed/inout attributs
- d-bugmail puremagic.com (33/33) Oct 13 2012 http://d.puremagic.com/issues/show_bug.cgi?id=8812
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: nobody puremagic.com ReportedBy: zan77137 nifty.com --- Comment #0 from SHOO <zan77137 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: -------
Oct 13 2012