aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/backend/jvm/DottyBackendInterface.scala
diff options
context:
space:
mode:
authorDmitry Petrashko <dmitry.petrashko@gmail.com>2015-04-30 14:50:03 +0200
committerDmitry Petrashko <dmitry.petrashko@gmail.com>2015-04-30 14:50:03 +0200
commitc4b61af8b20dd9f763ffa34e27625e3ffd966f5c (patch)
treef68e4d39d6f1cddc2a2773ae63d5ca219fdf8287 /src/dotty/tools/backend/jvm/DottyBackendInterface.scala
parent3b4c230d6a9fe9dd926b369831fbd6f3a8fa749a (diff)
downloaddotty-c4b61af8b20dd9f763ffa34e27625e3ffd966f5c.tar.gz
dotty-c4b61af8b20dd9f763ffa34e27625e3ffd966f5c.tar.bz2
dotty-c4b61af8b20dd9f763ffa34e27625e3ffd966f5c.zip
DottyBackendInterface: interface members cannot be final
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 009b7fb2b..2e904cc23 100644
--- a/src/dotty/tools/backend/jvm/DottyBackendInterface.scala
+++ b/src/dotty/tools/backend/jvm/DottyBackendInterface.scala
@@ -589,7 +589,7 @@ class DottyBackendInterface()(implicit ctx: Context) extends BackendInterface{
def isDeferred: Boolean = sym is Flags.Deferred
def isPrivate: Boolean = sym is Flags.Private
def getsJavaFinalFlag: Boolean =
- isFinal && !toDenot(sym).isClassConstructor && !(sym is Flags.Mutable) && !(sym.enclosingClass is Flags.JavaInterface)
+ isFinal && !toDenot(sym).isClassConstructor && !(sym is Flags.Mutable) && !(sym.enclosingClass is Flags.Trait)
def getsJavaPrivateFlag: Boolean =
isPrivate //|| (sym.isPrimaryConstructor && sym.owner.isTopLevelModuleClass)