Skip to content

Commit d76f925

Browse files
committed
Remove extra spaces in error messages
1 parent 833a41e commit d76f925

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -100,16 +100,16 @@ object MatchTypeTrace:
100100
case TryReduce(scrut: Type) =>
101101
i" trying to reduce $scrut"
102102
case NoMatches(scrut, cases) =>
103-
i""" failed since selector $scrut
103+
i""" failed since selector $scrut
104104
| matches none of the cases
105105
|
106106
| ${casesText(cases)}"""
107107
case EmptyScrutinee(scrut) =>
108-
i""" failed since selector $scrut
108+
i""" failed since selector $scrut
109109
| is uninhabited (there are no values of that type)."""
110110
case Stuck(scrut, stuckCase, otherCases) =>
111111
val msg =
112-
i""" failed since selector $scrut
112+
i""" failed since selector $scrut
113113
| does not match ${caseText(stuckCase)}
114114
| and cannot be shown to be disjoint from it either."""
115115
if otherCases.length == 0 then msg
@@ -121,14 +121,14 @@ object MatchTypeTrace:
121121
| ${casesText(otherCases)}"""
122122
case NoInstance(scrut, stuckCase, fails) =>
123123
def params = if fails.length == 1 then "parameter" else "parameters"
124-
i""" failed since selector $scrut
124+
i""" failed since selector $scrut
125125
| does not uniquely determine $params ${fails.map(_._1)}%, % in
126126
| ${caseText(stuckCase)}
127127
| The computed bounds for the $params are:
128128
| ${fails.map((name, bounds) => i"$name$bounds")}%\n %"""
129129

130130
def noMatchesText(scrut: Type, cases: List[Type])(using Context): String =
131-
i"""failed since selector $scrut
131+
i"""failed since selector $scrut
132132
|matches none of the cases
133133
|
134134
| ${casesText(cases)}"""

0 commit comments

Comments
 (0)