aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/leaks.scala
Commit message (Collapse)AuthorAgeFilesLines
* checkNoPrivateLeaks: handle defs in local classesGuillaume Martres2016-11-221-0/+10
| | | | | | The access boundary of a def in a local class is the owner of that class, previously it was set to the access boundary of the owner of the class instead.
* checkNoPrivateLeaks: handle references to companion membersGuillaume Martres2016-11-221-0/+17
Previously Outer2#Inner#foo failed to compile with: ``` non-private method foo refers to private value x in its type signature ``` This should compile because the boundary of `foo` is `class Outer2` and the boundary of `x` is `object Outer2`. This commit fixes this by also considering the linked boundary in `checkNoPrivateLeaks`.