← Back to index
|
Original Bugzilla link
Bug 9624 – fullyQualifiedName fails for functions
Status
RESOLVED
Resolution
FIXED
Severity
minor
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-03-01T12:29:00Z
Last change time
2013-03-08T15:38:22Z
Keywords
pull
Assigned to
nobody
Creator
public
Comments
Comment #0
by public — 2013-03-01T12:29:19Z
--- import std.traits; void func(int) { } void main() { pragma(msg, fullyQualifiedName!func); } --- /opt/compilers/dmd2/include/std/traits.d(303): Error: function c487.func (int _param_0) is not callable using argument types () /opt/compilers/dmd2/include/std/traits.d(303): Error: expected 1 function arguments, not 0 /opt/compilers/dmd2/include/std/traits.d(257): Error: template instance std.traits.fullyQualifiedNameImplForSymbols!(func) error instantiating /home/c229/c487.d(7): instantiated from here: fullyQualifiedName!(func) /home/c229/c487.d(7): Error: template instance std.traits.fullyQualifiedName!(func) error instantiating /home/c229/c487.d(7): while evaluating pragma(msg, fullyQualifiedName!(func)) --- Fix is trivial and ready to merge:
https://github.com/D-Programming-Language/phobos/pull/1182
Comment #1
by andrej.mitrovich — 2013-03-08T15:38:22Z
https://github.com/D-Programming-Language/phobos/commit/38aebebeba96e7312d3ce9611fe3ed2ed0283fa5