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 235df32 commit 42b541aCopy full SHA for 42b541a
src/dotty/tools/backend/jvm/DottyBackendInterface.scala
@@ -427,7 +427,7 @@ class DottyBackendInterface()(implicit ctx: Context) extends BackendInterface{
427
case TermRef(prefix: ThisType, name) =>
428
Some(tpd.This(prefix.cls).select(i.symbol))
429
case TermRef(NoPrefix, name) =>
430
- if (i.symbol is Flags.Method) Some(This(i.symbol.enclosingClass).select(i.symbol)) // workaround #342 todo: remove after fixed
+ if (i.symbol is Flags.Method) Some(This(i.symbol.topLevelClass).select(i.symbol)) // workaround #342 todo: remove after fixed
431
else None
432
case _ => None
433
}
0 commit comments