Bug 8812 – functionAttributes doesn't returns const/immutable/shraed/inout attributs

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-10-13T07:53:55Z
Last change time
2020-03-21T03:56:33Z
Assigned to
No Owner
Creator
SHOO

Comments

Comment #0 by zan77137 — 2012-10-13T07:53:55Z
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
Comment #1 by s_dlang_bugzilla — 2015-08-22T07:23:35Z
dmd2.068, linux, 64bit Code works as expected.