Skip to content

Commit c1944c1

Browse files
committed
REPL: Make sure to call printSummary
For example: scala> @deprecated("no", "nah") class C; new C there were 1 deprecation warning(s); re-run with -deprecation for details // defined class C val res0: C = C@4273cda6
1 parent d2b2c46 commit c1944c1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ class ReplCompiler extends Compiler {
150150
private def runCompilationUnit(unit: CompilationUnit, state: State): Result[(CompilationUnit, State)] = {
151151
val ctx = state.context
152152
ctx.run.compileUnits(unit :: Nil)
153+
ctx.run.printSummary()
153154

154155
if (!ctx.reporter.hasErrors) (unit, state).result
155156
else ctx.reporter.removeBufferedMessages(using ctx).errors

0 commit comments

Comments
 (0)