Skip to content

Commit

Permalink
Don't do ExpandPrivate checks on synthetic methods
Browse files Browse the repository at this point in the history
  • Loading branch information
anatoliykmetyuk committed Aug 26, 2022
1 parent 28e3e32 commit 8f344c7
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -66,7 +66,7 @@ class ExpandPrivate extends MiniPhase with IdentityDenotTransformer { thisPhase
private def ensurePrivateAccessible(d: SymDenotation)(using Context) =
if (isVCPrivateParamAccessor(d))
d.ensureNotPrivate.installAfter(thisPhase)
else if (d.is(PrivateTerm) && !d.owner.is(Package) && d.owner != ctx.owner.lexicallyEnclosingClass && !d.is(InlineProxy)) {
else if (d.is(PrivateTerm) && !d.owner.is(Package) && d.owner != ctx.owner.lexicallyEnclosingClass && !d.is(InlineProxy) && !d.is(Synthetic)) {
// Paths `p1` and `p2` are similar if they have a common suffix that follows
// possibly different directory paths. That is, their common suffix extends
// in both cases either to the start of the path or to a file separator character.
Expand Down

0 comments on commit 8f344c7

Please sign in to comment.