aboutsummaryrefslogtreecommitdiff
path: root/compiler/src/dotty/tools/backend
diff options
context:
space:
mode:
authorGuillaume Martres <smarter@ubuntu.com>2016-11-30 20:13:53 +0100
committerGuillaume Martres <smarter@ubuntu.com>2016-11-30 23:20:44 +0100
commitcaee63d62f5d4af3c78ec03a6ab34d87682f9522 (patch)
tree8e7dd2dbfcc281472cb821a2966bab9c0ce54516 /compiler/src/dotty/tools/backend
parentb9350f40990ce07ba7614a0448a98abd7075abe8 (diff)
downloaddotty-caee63d62f5d4af3c78ec03a6ab34d87682f9522.tar.gz
dotty-caee63d62f5d4af3c78ec03a6ab34d87682f9522.tar.bz2
dotty-caee63d62f5d4af3c78ec03a6ab34d87682f9522.zip
Fix annotations never being emitted
Diffstat (limited to 'compiler/src/dotty/tools/backend')
-rw-r--r--compiler/src/dotty/tools/backend/jvm/DottyBackendInterface.scala3
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/src/dotty/tools/backend/jvm/DottyBackendInterface.scala b/compiler/src/dotty/tools/backend/jvm/DottyBackendInterface.scala
index a7c449947..8a29cd5e2 100644
--- a/compiler/src/dotty/tools/backend/jvm/DottyBackendInterface.scala
+++ b/compiler/src/dotty/tools/backend/jvm/DottyBackendInterface.scala
@@ -206,7 +206,6 @@ class DottyBackendInterface(outputDirectory: AbstractFile, val superCallsMap: Ma
implicit val ConstantClassTag: ClassTag[Constant] = ClassTag[Constant](classOf[Constant])
implicit val ClosureTag: ClassTag[Closure] = ClassTag[Closure](classOf[Closure])
- /* dont emit any annotations for now*/
def isRuntimeVisible(annot: Annotation): Boolean = {
annot.atp.typeSymbol.getAnnotation(AnnotationRetentionAttr) match {
case Some(retentionAnnot) =>
@@ -708,7 +707,7 @@ class DottyBackendInterface(outputDirectory: AbstractFile, val superCallsMap: Ma
}
else Nil
- def annotations: List[Annotation] = Nil
+ def annotations: List[Annotation] = toDenot(sym).annotations
def companionModuleMembers: List[Symbol] = {
// phase travel to exitingPickler: this makes sure that memberClassesOf only sees member classes,
// not local classes of the companion module (E in the exmaple) that were lifted by lambdalift.