diff options
author | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2015-04-30 14:50:03 +0200 |
---|---|---|
committer | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2015-04-30 14:50:03 +0200 |
commit | c4b61af8b20dd9f763ffa34e27625e3ffd966f5c (patch) | |
tree | f68e4d39d6f1cddc2a2773ae63d5ca219fdf8287 | |
parent | 3b4c230d6a9fe9dd926b369831fbd6f3a8fa749a (diff) | |
download | dotty-c4b61af8b20dd9f763ffa34e27625e3ffd966f5c.tar.gz dotty-c4b61af8b20dd9f763ffa34e27625e3ffd966f5c.tar.bz2 dotty-c4b61af8b20dd9f763ffa34e27625e3ffd966f5c.zip |
DottyBackendInterface: interface members cannot be final
-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 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) |