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: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Andrei Alexandrescu <[email protected]> 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: -------