Skip to content

Commit

Permalink
Still display parse errors
Browse files Browse the repository at this point in the history
  • Loading branch information
lrytz committed Jul 1, 2019
1 parent 1ffe06b commit b5653ba
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/repl/scala/tools/nsc/interpreter/IMain.scala
Expand Up @@ -1116,10 +1116,8 @@ class IMain(val settings: Settings, parentClassLoaderOverride: Option[ClassLoade
currentRun.parsing.withIncompleteHandler((_, _) => isIncomplete = true) {
reporter.reset()

val (unit, trees) = reporter.suppressOutput {
val unit = newCompilationUnit(line, label)
(unit, newUnitParser(unit).parseStats())
}
val unit = newCompilationUnit(line, label)
val trees = newUnitParser(unit).parseStats()
if (reporter.hasErrors) Left(Error)
else if (reporter.hasWarnings && settings.fatalWarnings) {
currentRun.reporting.summarizeErrors()
Expand Down

0 comments on commit b5653ba

Please sign in to comment.