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.
2 parents 698935a + ac76968 commit 647617dCopy full SHA for 647617d
src/dotty/tools/backend/jvm/DottyBackendInterface.scala
@@ -282,6 +282,9 @@ class DottyBackendInterface()(implicit ctx: Context) extends BackendInterface{
282
Some(tpd.ref(prefix).select(i.symbol))
283
case TermRef(prefix: ThisType, name) =>
284
Some(tpd.This(prefix.cls).select(i.symbol))
285
+ case TermRef(NoPrefix, name) =>
286
+ if(i.symbol is Flags.Method) Some(This(i.symbol.enclosingClass).select(i.symbol)) // workaround #342 todo: remove after fixed
287
+ else None
288
case _ => None
289
}
290
0 commit comments