diff options
-rw-r--r-- | src/compiler/scala/tools/nsc/ast/parser/Scanners.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/ast/parser/Scanners.scala b/src/compiler/scala/tools/nsc/ast/parser/Scanners.scala index 11b53faed5..f4fa6fd75b 100644 --- a/src/compiler/scala/tools/nsc/ast/parser/Scanners.scala +++ b/src/compiler/scala/tools/nsc/ast/parser/Scanners.scala @@ -59,7 +59,7 @@ trait Scanners { def resume(lastCode: Int) = { token = lastCode - assert(next.token == EMPTY) + assert(next.token == EMPTY || reporter.hasErrors) nextToken() } |