Skip to content

Commit 870885f

Browse files
committed
Fix #4217: display warnings in repl
1 parent 2f94916 commit 870885f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

compiler/src/dotty/tools/repl/ReplDriver.scala

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,9 @@ class ReplDriver(settings: Array[String],
235235
val newImports = newState.imports ++ extractImports(parsed.trees)
236236
val newStateWithImports = newState.copy(imports = newImports)
237237

238+
implicit val ctx: Context = newState.run.runContext
239+
displayErrors(newState.run.runContext.flushBufferedMessages())
240+
238241
displayDefinitions(unit.tpdTree, newestWrapper)(newStateWithImports)
239242
}
240243
}

0 commit comments

Comments
 (0)