[Issue 5532] Overloading an operator breaks when using typeof(this)

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Feb 6 11:37:13 PST 2011


http://d.puremagic.com/issues/show_bug.cgi?id=5532


bearophile_hugs at eml.cc changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bearophile_hugs at eml.cc


--- Comment #2 from bearophile_hugs at eml.cc 2011-02-06 11:34:51 PST ---
Reduced test case:


struct Foo {
    void opBinary(string op)(typeof(this) other) {}
}
void main() {
    Foo() + 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