[Issue 5068] New: opOpAssign fails when if()-constraint is used
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Oct 17 00:28:02 PDT 2010
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: nobody at puremagic.com
ReportedBy: cbkbbejeap at mailinator.com
--- Comment #0 from Nick Sabalausky <cbkbbejeap at mailinator.com> 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: -------
More information about the Digitalmars-d-bugs
mailing list