summaryrefslogtreecommitdiff
path: root/test/files/neg/t7636.check
Commit message (Collapse)AuthorAgeFilesLines
* SI-3439 Fix use of implicit constructor params in super callJason Zaugg2014-10-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | When typechecking the primary constructor body, the symbols of constructor parameters of a class are owned by the class's owner. This is done make scoping work; you shouldn't be able to refer to class members in that position. However, other parts of the compiler weren't so happy about this arrangement. The enclosed test case shows that our checks for invalid, top-level implicits was spuriously triggered, and implicit search itself would fail. Furthermore, we had to hack `Run#compiles` to special case top-level early-initialized symbols. See SI-7264 / 86e6e9290. This commit: - introduces an intermediate local dummy term symbol which will act as the owner for constructor parameters and early initialized members - adds this to the `Run#symSource` map if it is top level - simplifies `Run#compiles` accordingly - tests this all in a top-level class, and one nested in another class.
* Rename t7636-neg.check to the standard t7636.check.Adriaan Moors2013-07-291-0/+10
Not sure which partest bug allowed this, but the old name was wrong.