Skip to content

Commit c8623db

Browse files
committed
Fix generated modifiers for enum cases
1 parent aa24efe commit c8623db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/parsing/Parsers.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2239,7 +2239,7 @@ object Parsers {
22392239
}
22402240
else
22412241
ModuleDef(id.name.toTermName, caseTemplate(emptyConstructor))
2242-
caseDef.withMods(mods).setComment(in.getDocComment(start))
2242+
caseDef.withMods(mods1).setComment(in.getDocComment(start))
22432243
}
22442244
}
22452245
}

0 commit comments

Comments
 (0)