File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
compiler/src/dotty/tools/dotc/reporting/diagnostic Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments