File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed
src/dotty/tools/dotc/transform Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -406,11 +406,10 @@ class ReifyQuotes extends MacroTransform {
406406 cpy.DefDef (tree)(rhs = defaultValue(tree.rhs.tpe))
407407
408408 case tree : DefTree if level >= 1 =>
409- val newAnnotations = tree.symbol.annotations.mapconserve {
410- case ConcreteAnnotation (annotTree) =>
411- val newAnnotTree = transform(annotTree) given ctx .withOwner(tree.symbol)
412- ConcreteAnnotation (newAnnotTree)
413- case annot => annot
409+ val newAnnotations = tree.symbol.annotations.mapconserve { annot =>
410+ val newAnnotTree = transform(annot.tree) given ctx .withOwner(tree.symbol)
411+ if (annot.tree == newAnnotTree) annot
412+ else ConcreteAnnotation (newAnnotTree)
414413 }
415414 tree.symbol.annotations = newAnnotations
416415 super .transform(tree)
Original file line number Diff line number Diff line change @@ -6,4 +6,3 @@ t3612.scala
66
77# Other failure
88t802.scala
9- i7052.scala
You can’t perform that action at this time.
0 commit comments