summaryrefslogtreecommitdiff
path: root/test/files/neg/t9849.scala
Commit message (Collapse)AuthorAgeFilesLines
* SI-9849 set privateWithin on default gettersLukas Rytz2016-07-121-0/+16
A default getter get the same access flag (private / protected) as the method whose default it implements. However, we forgot to set the privateWithin flag, which defines the scope in a qualified private / protected modifier. For a private[p], the default getter was therefore public, which is less restricted (a private[p] method has privateWithin set to p, but the private flag is not set). For a protected[p], the default getter was protected, which is more restricted.