http://d.puremagic.com/issues/show_bug.cgi?id=9936
Summary: Wrong opBinary/opBinaryRight rewrite.
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from [email protected] 2013-04-15 09:35:35 PDT ---
DMD 2.062:
struct S{ auto opBinary(S s){ return 3; } }
static assert(!is(typeof(S()+S())));
The static assertion should pass. opBinary is not even a template.
The analogous bug exists for opBinaryRight.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------