https://issues.dlang.org/show_bug.cgi?id=11094

Andrej Mitrovic <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #1 from Andrej Mitrovic <[email protected]> ---
Note that it is unrelated to the overloads, you could have a single opBinary to
reproduce:

-----
struct Foo
{
    Foo opBinary(string op)(in Foo r) if (op == "+" || op == "^")
    {
        return Foo();
    }
}

void main()
{
    const x = Foo();
    auto r1 = x + Foo();
    auto r2 = x ^ Foo();
}
-----

--

Reply via email to