Skip to content

Commit 64c1797

Browse files
committed
remove whitespace and .stripMargin
1 parent 0b934ce commit 64c1797

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
@@ -1774,14 +1774,11 @@ object messages {
17741774
extends Message(EnumCaseDefinitionInNonEnumOwnerID) {
17751775
val kind = "Syntax"
17761776
val msg = em"case not allowed here, since owner `${owner}` is not an `${"enum"}` object"
1777-
val explanation = {
1778-
1777+
val explanation =
17791778
hl"""
17801779
| `${"case"}` is only allowed at this place if the surrounding object is the companion object of an `${"enum"} ${"class"}`.
17811780
| If you wanted to create an enumeration make sure that the corresponding class has the `${"enum"}` keyword.
17821781
| Otherwise you might have forgotten `${"class"}` or `${"object"}` after this `${"case"}` here.
1783-
|
1784-
""".stripMargin
1785-
}
1782+
"""
17861783
}
17871784
}

0 commit comments

Comments
 (0)