Skip to content

Commit

Permalink
Use == when computing diff in Annotation.mapWith
Browse files Browse the repository at this point in the history
  • Loading branch information
mbovel committed Mar 19, 2024
1 parent e51b8f1 commit b92fa3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/src/dotty/tools/dotc/core/Annotations.scala
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ object Annotations {
if tm.isRange(x) then x
else
val tp1 = tm(tree.tpe)
foldOver(if tp1 eq tree.tpe then x else tp1, tree)
foldOver(if tp1 == tree.tpe then x else tp1, tree)
val diff = findDiff(NoType, args)
if tm.isRange(diff) then EmptyAnnotation
else if diff.exists then derivedAnnotation(tm.mapOver(tree))
Expand Down

0 comments on commit b92fa3e

Please sign in to comment.