scala/scala — pull request #317 by som-snytt (2012-03-23 05:39:45+00:00)
Title: SI-5543 Constructor default argument expr wrongly scoped

This is a fix of limited scope (pun unintended, but I'll take it).

https://issues.scala-lang.org/browse/SI-5543

One line for the context bug, and a couple of lines to encapsulate detecting a default-getter for a ctor.

This change includes renaming init$default$ to init$$default$ to avoid collisions with default-getters for an ordinary method on the module named init.