Skip to content

Commit caee63d

Browse files
committed
Fix annotations never being emitted
1 parent b9350f4 commit caee63d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

compiler/src/dotty/tools/backend/jvm/DottyBackendInterface.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,6 @@ class DottyBackendInterface(outputDirectory: AbstractFile, val superCallsMap: Ma
206206
implicit val ConstantClassTag: ClassTag[Constant] = ClassTag[Constant](classOf[Constant])
207207
implicit val ClosureTag: ClassTag[Closure] = ClassTag[Closure](classOf[Closure])
208208

209-
/* dont emit any annotations for now*/
210209
def isRuntimeVisible(annot: Annotation): Boolean = {
211210
annot.atp.typeSymbol.getAnnotation(AnnotationRetentionAttr) match {
212211
case Some(retentionAnnot) =>
@@ -708,7 +707,7 @@ class DottyBackendInterface(outputDirectory: AbstractFile, val superCallsMap: Ma
708707
}
709708
else Nil
710709

711-
def annotations: List[Annotation] = Nil
710+
def annotations: List[Annotation] = toDenot(sym).annotations
712711
def companionModuleMembers: List[Symbol] = {
713712
// phase travel to exitingPickler: this makes sure that memberClassesOf only sees member classes,
714713
// not local classes of the companion module (E in the exmaple) that were lifted by lambdalift.

0 commit comments

Comments
 (0)