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 {
406
406
cpy.DefDef (tree)(rhs = defaultValue(tree.rhs.tpe))
407
407
408
408
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)
414
413
}
415
414
tree.symbol.annotations = newAnnotations
416
415
super .transform(tree)
Original file line number Diff line number Diff line change @@ -6,4 +6,3 @@ t3612.scala
6
6
7
7
# Other failure
8
8
t802.scala
9
- i7052.scala
You can’t perform that action at this time.
0 commit comments