[Issue 3485] New: [tdpl] Double bug in typedef

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Nov 7 08:34:10 PST 2009


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

           Summary: [tdpl] Double bug in typedef
           Product: D
           Version: unspecified
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: andrei at metalanguage.com


--- Comment #0 from Andrei Alexandrescu <andrei at metalanguage.com> 2009-11-07 08:34:09 PST ---
unittest {
    typedef double Mass;
    Mass m1 = 10;           // works, should NOT work
    Mass m2 = 10.0;         // does not work, should NOT work
    auto m3 = Mass(10);     // does not work, SHOULD work
    auto m4 = Mass(10.0);   // does not work, SHOULD work
}

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