summaryrefslogtreecommitdiff
path: root/test/files/pos/presuperContext.scala
Commit message (Collapse)AuthorAgeFilesLines
* Fix context for type checking early initializersLukas Rytz2013-02-031-0/+13
Before: scala> class A { class C extends { val x: A = this } with AnyRef } <console>:7: error: type mismatch; found : A.this.C required: A class A { class C extends { val x: A = this } with AnyRef } ^ Note that the same thing is necessary and already done in Namers (see def createNamer). The whole logic of when and how to create contexts should be factored out and reused in Namer and Typer. ( My Hobby [1]: detecting compiler by just looking at its soruce [1] http://www.explainxkcd.com/wiki/index.php?title=Category:My_Hobby )