aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/backend
diff options
context:
space:
mode:
authorDmitry Petrashko <dark@d-d.me>2015-07-15 17:59:12 +0200
committerDmitry Petrashko <dark@d-d.me>2015-07-15 17:59:12 +0200
commitb8da1ee6cc98e33aeeb296b07c638261ccacc451 (patch)
treee5119610ae37db1c9c003ab98364d741640fbad5 /src/dotty/tools/backend
parent3440c7b99f02d38b1dd1da0eb5d46ecfc184d8c6 (diff)
parent90c2bed395f4b449cf25392504ad39462cb99b72 (diff)
downloaddotty-b8da1ee6cc98e33aeeb296b07c638261ccacc451.tar.gz
dotty-b8da1ee6cc98e33aeeb296b07c638261ccacc451.tar.bz2
dotty-b8da1ee6cc98e33aeeb296b07c638261ccacc451.zip
Merge pull request #727 from dotty-staging/genbcode-annotations
Implement emission of annotations in GenBCode.
Diffstat (limited to 'src/dotty/tools/backend')
-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 4a828c5bd..8136b3dcd 100644
--- a/src/dotty/tools/backend/jvm/DottyBackendInterface.scala
+++ b/src/dotty/tools/backend/jvm/DottyBackendInterface.scala
@@ -621,7 +621,7 @@ class DottyBackendInterface()(implicit ctx: Context) extends BackendInterface{
def hasModuleFlag: Boolean = sym is Flags.Module
def isSynchronized: Boolean = sym is Flags.Synchronized
def isNonBottomSubClass(other: Symbol): Boolean = sym.derivesFrom(other)
- def hasAnnotation(sym: Symbol): Boolean = false
+ def hasAnnotation(ann: Symbol): Boolean = toDenot(sym).hasAnnotation(ann)
def shouldEmitForwarders: Boolean = //exitingPickler { !(sym.name.toString contains '$')
(sym is Flags.Module) && !(sym is Flags.ImplClass) /// !sym.isNestedClass
def isJavaEntryPoint: Boolean = CollectEntryPoints.isJavaEntryPoint(sym)