Skip to content

Commit a7decac

Browse files
Add all annotations to forwarder
1 parent 2ca5d1f commit a7decac

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

compiler/src/dotty/tools/dotc/typer/Namer.scala

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1129,9 +1129,7 @@ class Namer { typer: Typer =>
11291129
ctx.newSymbol(cls, forwarderName, mbrFlags, mbrInfo, coord = span)
11301130
}
11311131
forwarder.info = avoidPrivateLeaks(forwarder)
1132-
for annot <- sym.annotations do
1133-
if annot.tree.symbol.maybeOwner == defn.AlphaAnnot then
1134-
forwarder.addAnnotation(annot)
1132+
forwarder.addAnnotations(sym.annotations)
11351133
val forwarderDef =
11361134
if (forwarder.isType) tpd.TypeDef(forwarder.asType)
11371135
else {

0 commit comments

Comments
 (0)