aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/t0054.scala
Commit message (Collapse)AuthorAgeFilesLines
* Fix constructor completion problem detected in t0054Martin Odersky2014-03-121-0/+4
Constructors need to be completed in the context which immediately encloses a class. Otherwise type references in the constructor see the wrong types, as is demonstrated in t0054. The difficulty here is that the inner class B nested in A also extends from A. Then it makes a difference whether the constructor parameter types of B are resolved in the context of B or in the context of A. Added explanation for context handling of constructors.