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 6a12079 commit e42b83eCopy full SHA for e42b83e
compiler/src/dotty/tools/dotc/transform/ExpandPrivate.scala
@@ -90,6 +90,7 @@ class ExpandPrivate extends MiniPhase with IdentityDenotTransformer { thisPhase
90
}
91
92
assert(d.symbol.sourceFile != null &&
93
+ ctx.owner.sourceFile != null &&
94
isSimilar(d.symbol.sourceFile.path, ctx.owner.sourceFile.path),
95
s"private ${d.symbol.showLocated} in ${d.symbol.sourceFile} accessed from ${ctx.owner.showLocated} in ${ctx.owner.sourceFile}")
96
d.ensureNotPrivate.installAfter(thisPhase)
0 commit comments