You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For private toplevel definitions we expand `private` to `private[p]`
where `p` is the enclosing package. This PR applies the same scheme to
protected toplevel definitions.
Rationale: #18057 fixed an issue where toplevel protected members were always accessible
because explicit package object prefixes were added after the accessibility check was done,
and would re-establish the previous members without doing an accessibility check. The fix was
done by adding package objects first, then doing he rest of the checks. But that also means
that protected toplevel objects now get checked as members of their synthetic package object
instead of as members of their package. To avoid that we make the package explicit as qalifier.
Thsi shouls also make specs2 compile again.
0 commit comments