Skip to content

Commit 3a5460b

Browse files
authored
Merge pull request #5049 from dotty-staging/avoid-fishy-string-ne
Fix #5046: Avoid fishy reference equality on strings
2 parents f22497b + 3197fe5 commit 3a5460b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ object Decorators {
157157
names exists { name =>
158158
name == "all" || {
159159
val strippedName = name.stripSuffix("+")
160-
val logNextPhase = name ne strippedName
160+
val logNextPhase = name != strippedName
161161
phase.phaseName.startsWith(strippedName) ||
162162
(logNextPhase && phase.prev.phaseName.startsWith(strippedName))
163163
}

0 commit comments

Comments
 (0)