scala/scala — pull request #734 by retronym (2012-06-17 17:23:44+00:00)
Title: SI-4842 Forbid access to outer this from constructor-local classes.

In the same spirit as SI-4166. In fact, this change takes over some of its error message turf.

In this case, it's more of an implementation restriction, as the generated classes don't get an `$outer` parameter (See `Symbol#{isClassLocalToConstructor, outerClass}`).

review by @adriaanm (or another member of the Wannabe NPEs...)

- would it be more correct to add an `$outer` parameter for these? maybe the restriction was only intended for arguments to the super constructor, rather than the self constructor.
- general question: which checks go into `Typers` vs `RefChecks`?