File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
compiler/src/dotty/tools/dotc/transform Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -89,8 +89,10 @@ class ExpandPrivate extends MiniPhaseTransform with IdentityDenotTransformer { t
8989 (i < 0 || p1(i) == separatorChar) &&
9090 (j < 0 || p1(j) == separatorChar)
9191 }
92- assert(isSimilar(d.symbol.sourceFile.path, ctx.source.file.path),
93- i " private ${d.symbol.showLocated} in ${d.symbol.sourceFile} accessed from ${ctx.owner.showLocated} in ${ctx.source.file}" )
92+
93+ assert(d.symbol.sourceFile != null &&
94+ isSimilar(d.symbol.sourceFile.path, ctx.source.file.path),
95+ s " private ${d.symbol.showLocated} in ${d.symbol.sourceFile} accessed from ${ctx.owner.showLocated} in ${ctx.source.file}" )
9496 d.ensureNotPrivate.installAfter(thisTransform)
9597 }
9698
You can’t perform that action at this time.
0 commit comments