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
89
89
(i < 0 || p1(i) == separatorChar) &&
90
90
(j < 0 || p1(j) == separatorChar)
91
91
}
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}" )
94
96
d.ensureNotPrivate.installAfter(thisTransform)
95
97
}
96
98
You can’t perform that action at this time.
0 commit comments