Skip to content

Commit 213044a

Browse files
committed
Fix DottyBackendInterafec.isStaticModuleClass.
Used to pass wrong context.
1 parent 2b5b064 commit 213044a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -640,7 +640,7 @@ class DottyBackendInterface()(implicit ctx: Context) extends BackendInterface{
640640
val original = toDenot(sym).initial
641641
val validity = original.validFor
642642
val shiftedContext = ctx.withPhase(validity.phaseId)
643-
toDenot(sym)(shiftedContext).isStatic
643+
toDenot(sym)(shiftedContext).isStatic(shiftedContext)
644644
}
645645

646646
def isStaticConstructor: Boolean = isStaticMember && isClassConstructor

0 commit comments

Comments
 (0)