File tree 1 file changed +3
-8
lines changed
compiler/src/dotty/tools/dotc/transform/init
1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -245,14 +245,9 @@ object Summarization {
245
245
if tmref.symbol.is(Flags .Module , butNot = Flags .Package )
246
246
&& tmref.symbol.isStatic
247
247
=>
248
- val cls = tmref.symbol.moduleClass
249
- if cls == env.ctx.owner.lexicallyEnclosingClass then
250
- // self reference to an object inside the object
251
- Summary (ThisRef ()(source))
252
- else
253
- val enclosing = env.ctx.owner.lexicallyEnclosingClass.asClass
254
- val pot = Global (tmref.symbol, enclosing)(source)
255
- Summary (pot) + AccessGlobal (pot)
248
+ val enclosing = env.ctx.owner.lexicallyEnclosingClass.asClass
249
+ val pot = Global (tmref.symbol, enclosing)(source)
250
+ Summary (pot) + AccessGlobal (pot)
256
251
257
252
case tmref : TermRef =>
258
253
val Summary (pots, effs) = analyze(tmref.prefix, source)
You can’t perform that action at this time.
0 commit comments