We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d4687cd commit 5ae4fc8Copy full SHA for 5ae4fc8
compiler/src/dotty/tools/dotc/transform/ExpandPrivate.scala
@@ -66,7 +66,7 @@ class ExpandPrivate extends MiniPhase with IdentityDenotTransformer { thisPhase
66
private def ensurePrivateAccessible(d: SymDenotation)(using Context) =
67
if (isVCPrivateParamAccessor(d))
68
d.ensureNotPrivate.installAfter(thisPhase)
69
- else if (d.is(PrivateTerm) && !d.owner.is(Package) && d.owner != ctx.owner.lexicallyEnclosingClass) {
+ else if (d.is(PrivateTerm) && !d.owner.is(Package) && d.owner != ctx.owner.lexicallyEnclosingClass && !d.is(InlineProxy)) {
70
// Paths `p1` and `p2` are similar if they have a common suffix that follows
71
// possibly different directory paths. That is, their common suffix extends
72
// in both cases either to the start of the path or to a file separator character.
0 commit comments