D-Programming-Language/dmd — pull request #534 by 9rnsr (2011-11-25 17:28:29+00:00)
Title: Issue 3733 - Overloading on 'this' modifiers fails with implicit 'this'

4392 and 3733 are similar, but are bit different.

- Issue 4392 - Problems with const/non-const overloads of member functions

In `CallExp::semantic` with `e1->op == TOKvar`, the head of overloads is unintentionally changed.

- Issue 3733 - Overloading on 'this' modifiers fails with implicit 'this'

Between shared and non-shared overloading, `FuncDeclaration::overloadResolve` cannot determine the actual callee if `ethis` is `NULL`. In this case we should defer the resolution until after adding 'this'