Skip to content

Commit a5d6d8f

Browse files
committed
Fix a typo in an error message
Also remove parens because we ended up with "... since the scrutinee type ((item: Int))" when the scrutinee is a singleton type.
1 parent c7a353c commit a5d6d8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/reporting/messages.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2126,7 +2126,7 @@ import transform.SymUtils._
21262126
val addendum =
21272127
if (scrutTp != testTp) s" is a subtype of ${testTp.show}"
21282128
else " is the same as the tested type"
2129-
s"The highlighted type test will always succeed since the scrutinee type ($scrutTp.show)" + addendum
2129+
s"The highlighted type test will always succeed since the scrutinee type ${scrutTp.show}" + addendum
21302130
}
21312131
def explain = ""
21322132
}

0 commit comments

Comments
 (0)