[Issue 9624] New: fullyQualifiedName fails for functions
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Mar 1 12:29:20 PST 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9624
Summary: fullyQualifiedName fails for functions
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: minor
Priority: P2
Component: Phobos
AssignedTo: nobody at puremagic.com
ReportedBy: m.strashun at gmail.com
--- Comment #0 from Dicebot <m.strashun at gmail.com> 2013-03-01 12:29:19 PST ---
---
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
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list