scala/scala — pull request #3572 by retronym (2014-02-21 21:44:12+00:00)
Title: SI-8197 Only consider immediate params for defaults, overloading

A recent commit fixed the behaviour of overloading with regards
to discarding candiates that include default arguments. The old
check was checking the wrong flag.

But, the new code is actually checking all parameter lists for
defaults, which led to a regression in scala-io, which is distilled
in the enclosed test case. Applications are typechecked one
parameter list at a time, so a holistic check for defaults doesn't
seem to make sense; only defaults in the first parameter list
ought to count.

Review (and adoption if needed!) by @adriaanm