Skip to content

Commit fe21e42

Browse files
committed
remove whitespace and .stripMargin
1 parent f429f3a commit fe21e42

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

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

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1781,14 +1781,11 @@ object messages {
17811781
extends Message(EnumCaseDefinitionInNonEnumOwnerID) {
17821782
val kind = "Syntax"
17831783
val msg = em"case not allowed here, since owner `${owner}` is not an `${"enum"}` object"
1784-
val explanation = {
1785-
1784+
val explanation =
17861785
hl"""
17871786
| `${"case"}` is only allowed at this place if the surrounding object is the companion object of an `${"enum"} ${"class"}`.
17881787
| If you wanted to create an enumeration make sure that the corresponding class has the `${"enum"}` keyword.
17891788
| Otherwise you might have forgotten `${"class"}` or `${"object"}` after this `${"case"}` here.
1790-
|
1791-
""".stripMargin
1792-
}
1789+
"""
17931790
}
17941791
}

0 commit comments

Comments
 (0)