Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | checkNoPrivateLeaks: handle defs in local classes | Guillaume Martres | 2016-11-22 | 1 | -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 members | Guillaume Martres | 2016-11-22 | 1 | -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`. |