summaryrefslogtreecommitdiff
path: root/test/files/pos/trait_lazy_accessboundary.scala
Commit message (Collapse)AuthorAgeFilesLines
* Ensure access from subclass to trait lazy valAdriaan Moors2016-08-291-0/+2
Since we need to refer to a trait lazy val's accessor using a super call in a subclass (when the field and bitmap are added), we must ensure that access is allowed. If the lazy val has an access boundary (e.g., `private[somePkg]`), make sure the `PROTECTED` flag is set, which widens access to `protected[somePkg]`. (As `member.hasAccessBoundary` implies `!member.hasFlag(PRIVATE)`, we don't have to `resetFlag PRIVATE`.)