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

ZombineDev <petar.p.ki...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |petar.p.ki...@gmail.com

--- Comment #2 from ZombineDev <petar.p.ki...@gmail.com> ---
I think it would be more appropriate if the compiler raised an ambiguity error,
because the behavior is tricky and can lead to hard to track bugs.

If the opIndexAssign is defined, than opIndex that returns a reference should
be disallowed, or at least opIndex that returns a mutable (assignable)
reference should be.

--

Reply via email to