Bug 8911 – -property makes fullyQualifiedName fail for functions
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-10-29T16:29:00Z
Last change time
2013-06-14T01:19:01Z
Assigned to
nobody
Creator
samukha
Comments
Comment #0 by samukha — 2012-10-29T16:29:16Z
Compile with -property:
import std.traits;
void foo() {};
pragma(msg, fullyQualifiedName!foo); // Error: not a property foo
The reason is stringof:
pragma(msg, foo.mangleof); // ok
pragma(msg, foo.stringof); // fail