scala/scala — pull request #854 by clhodapp (2012-07-09 00:23:44+00:00)
Title: New TermSymbol.resolveOverloaded

review by @cvogt and @odersky

Updated: rebased to include some just-merged fixes.

This commit replaces the resolveOverload method in TermSymbols in order to bring it more into line with what happens in the compiler. It supports a number of language features that the existing version does not, including expected return type, call-by-name parameters, and default-argument parameters. It also has a lot more tests.

I am sure that there are still many behavioral differences between this implementation and the one in the compiler as 1) I've just written it and 2) It is not the same code. Therefore, they should really be unified in reflect.jar in the future. That said, this is a significant improvement over what is in place now.