[Issue 5359] New: std.traits : isDelegate returns false on a delegate
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Dec 19 14:51:50 PST 2010
http://d.puremagic.com/issues/show_bug.cgi?id=5359
Summary: std.traits : isDelegate returns false on a delegate
Product: D
Version: D2
Platform: Other
OS/Version: Windows
Status: NEW
Severity: normal
Priority: P2
Component: Phobos
AssignedTo: nobody at puremagic.com
ReportedBy: andrej.mitrovich at gmail.com
--- Comment #0 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2010-12-19 14:49:57 PST ---
import std.traits;
import std.stdio : writeln;
void main()
{
int delegate() dg;
writeln(typeid(dg)); // "int delegate()"
assert(isDelegate!(int delegate())); // ok
assert(isSomeFunction!(dg)); // ok..
assert(isDelegate!(dg)); // fails
}
Huh?
--
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