diff options
author | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2015-10-22 12:16:02 +0200 |
---|---|---|
committer | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2015-10-22 12:16:02 +0200 |
commit | 213044a3e7c07d3567d6351558c547fda4500547 (patch) | |
tree | 1bd477c8a09c426d37ed703d78901d3d796fafa4 /src/dotty/tools/backend/jvm/DottyBackendInterface.scala | |
parent | 2b5b0648dc8c3eb4738d99932f87b9962e9d16b1 (diff) | |
download | dotty-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.scala | 2 |
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 |