From caee63d62f5d4af3c78ec03a6ab34d87682f9522 Mon Sep 17 00:00:00 2001 From: Guillaume Martres Date: Wed, 30 Nov 2016 20:13:53 +0100 Subject: Fix annotations never being emitted --- compiler/src/dotty/tools/backend/jvm/DottyBackendInterface.scala | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'compiler/src/dotty/tools/backend/jvm/DottyBackendInterface.scala') 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. -- cgit v1.2.3