Skip to content

Commit 647617d

Browse files
committed
Merge pull request #343 from dotty-staging/workaround-324
workaround #324
2 parents 698935a + ac76968 commit 647617d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/dotty/tools/backend/jvm/DottyBackendInterface.scala

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,9 @@ class DottyBackendInterface()(implicit ctx: Context) extends BackendInterface{
282282
Some(tpd.ref(prefix).select(i.symbol))
283283
case TermRef(prefix: ThisType, name) =>
284284
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
285288
case _ => None
286289
}
287290
}

0 commit comments

Comments
 (0)