We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2627c10 commit 2534faaCopy full SHA for 2534faa
compiler/src/dotty/tools/dotc/parsing/Parsers.scala
@@ -2151,7 +2151,7 @@ object Parsers {
2151
/** EnumCaseStats = EnumCaseStat {semi EnumCaseStat */
2152
def enumCaseStats(): List[DefTree] = {
2153
val cases = new ListBuffer[DefTree] += enumCaseStat()
2154
- while (in.token != RBRACE) {
+ while (in.token != RBRACE && in.token != EOF) {
2155
acceptStatSep()
2156
cases += enumCaseStat()
2157
}
0 commit comments