Skip to content

Commit b92fa3e

Browse files
committed
Use == when computing diff in Annotation.mapWith
1 parent e51b8f1 commit b92fa3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/core/Annotations.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ object Annotations {
6262
if tm.isRange(x) then x
6363
else
6464
val tp1 = tm(tree.tpe)
65-
foldOver(if tp1 eq tree.tpe then x else tp1, tree)
65+
foldOver(if tp1 == tree.tpe then x else tp1, tree)
6666
val diff = findDiff(NoType, args)
6767
if tm.isRange(diff) then EmptyAnnotation
6868
else if diff.exists then derivedAnnotation(tm.mapOver(tree))

0 commit comments

Comments
 (0)