http://d.puremagic.com/issues/show_bug.cgi?id=5068
Summary: opOpAssign fails when if()-constraint is used
Product: D
Version: D2
Platform: Other
OS/Version: Windows
Status: NEW
Keywords: rejects-valid
Severity: normal
Priority: P2
Component: DMD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Nick Sabalausky <[email protected]> 2010-10-17
00:27:26 PDT ---
class Foo
{
Foo opOpAssign(string op)(Foo b) if(op=="~=")
{
return this;
}
}
void main()
{
Foo f = new Foo();
// Error: cannot append type test.Foo to type test.Foo
f ~= new Foo();
}
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------