Skip to content

Commit 3558e07

Browse files
committed
Change access boundary of protected[this]
Should be `base`, was the class enclosing the definition.
1 parent ece7656 commit 3558e07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dotty/tools/dotc/core/SymDenotations.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -805,7 +805,7 @@ object SymDenotations {
805805
*/
806806
final def accessBoundary(base: Symbol)(implicit ctx: Context): Symbol = {
807807
val fs = flags
808-
if (fs is PrivateOrLocal) owner
808+
if (fs is Private) owner
809809
else if (fs is StaticProtected) defn.RootClass
810810
else if (privateWithin.exists && !ctx.phase.erasedTypes) privateWithin
811811
else if (fs is Protected) base

0 commit comments

Comments
 (0)