[Issue 3831] New: writeln of a delegate typeid

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Feb 18 12:52:19 PST 2010


http://d.puremagic.com/issues/show_bug.cgi?id=3831

           Summary: writeln of a delegate typeid
           Product: D
           Version: 2.040
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nobody at puremagic.com
        ReportedBy: bearophile_hugs at eml.cc


--- Comment #0 from bearophile_hugs at eml.cc 2010-02-18 12:52:18 PST ---
import std.stdio: writeln;
void main() {
    double sqr(double x) { return x * x; }
    writeln(typeid(typeof(&sqr)));
    pure double psqr(double x) { return x * x; }
    writeln(typeid(typeof(&psqr)));
}

It prints:
double delegate()
double delegate()

Instead of:
double delegate(double x)
pure double delegate(double x)

-- 
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