aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/backend/jvm/DottyBackendInterface.scala
diff options
context:
space:
mode:
authorDmitry Petrashko <dmitry.petrashko@gmail.com>2015-10-22 12:16:02 +0200
committerDmitry Petrashko <dmitry.petrashko@gmail.com>2015-10-22 12:16:02 +0200
commit213044a3e7c07d3567d6351558c547fda4500547 (patch)
tree1bd477c8a09c426d37ed703d78901d3d796fafa4 /src/dotty/tools/backend/jvm/DottyBackendInterface.scala
parent2b5b0648dc8c3eb4738d99932f87b9962e9d16b1 (diff)
downloaddotty-213044a3e7c07d3567d6351558c547fda4500547.tar.gz
dotty-213044a3e7c07d3567d6351558c547fda4500547.tar.bz2
dotty-213044a3e7c07d3567d6351558c547fda4500547.zip
Fix DottyBackendInterafec.isStaticModuleClass.
Used to pass wrong context.
Diffstat (limited to 'src/dotty/tools/backend/jvm/DottyBackendInterface.scala')
-rw-r--r--src/dotty/tools/backend/jvm/DottyBackendInterface.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dotty/tools/backend/jvm/DottyBackendInterface.scala b/src/dotty/tools/backend/jvm/DottyBackendInterface.scala
index 916ab3298..f92abe906 100644
--- a/src/dotty/tools/backend/jvm/DottyBackendInterface.scala
+++ b/src/dotty/tools/backend/jvm/DottyBackendInterface.scala
@@ -640,7 +640,7 @@ class DottyBackendInterface()(implicit ctx: Context) extends BackendInterface{
val original = toDenot(sym).initial
val validity = original.validFor
val shiftedContext = ctx.withPhase(validity.phaseId)
- toDenot(sym)(shiftedContext).isStatic
+ toDenot(sym)(shiftedContext).isStatic(shiftedContext)
}
def isStaticConstructor: Boolean = isStaticMember && isClassConstructor