Bug 3485 – [tdpl] Double bug in typedef

Status
RESOLVED
Resolution
WONTFIX
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
Other
OS
Linux
Creation time
2009-11-07T08:34:00Z
Last change time
2015-06-09T05:15:04Z
Keywords
accepts-invalid, rejects-valid
Assigned to
nobody
Creator
andrei

Comments

Comment #0 by andrei — 2009-11-07T08:34:09Z
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 }
Comment #1 by bugzilla — 2009-11-18T10:53:01Z
Dropping typedef, so won't fix.