diff options
-rw-r--r-- | src/compiler/scala/tools/nsc/ast/parser/Parsers.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala b/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala index 329b2604c7..467c6acf8b 100644 --- a/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala +++ b/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala @@ -1743,7 +1743,7 @@ mixin class Parsers requires SyntaxAnalyzer { } else if (in.token != SEMI && in.token != NEWLINE) { syntaxError("illegal start of definition", true); } - if (in.token != RBRACE) acceptStatSep(); + if (in.token != RBRACE && in.token != EOF) acceptStatSep(); } stats.toList } |