We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents af7bde7 + d774cef commit 08f4679Copy full SHA for 08f4679
compiler/src/dotty/tools/repl/ReplDriver.scala
@@ -235,6 +235,9 @@ class ReplDriver(settings: Array[String],
235
val newImports = newState.imports ++ extractImports(parsed.trees)
236
val newStateWithImports = newState.copy(imports = newImports)
237
238
+ // display warnings
239
+ displayErrors(newState.run.runContext.flushBufferedMessages())(newState)
240
+
241
displayDefinitions(unit.tpdTree, newestWrapper)(newStateWithImports)
242
}
243
compiler/test-resources/repl/i4217
@@ -0,0 +1,7 @@
1
+scala> def foo(x: Option[Int]) = x match { case None => }
2
+1 | def foo(x: Option[Int]) = x match { case None => }
3
+ | ^
4
+ | match may not be exhaustive.
5
+ |
6
+ | It would fail on pattern case: Some(_)
7
+def foo(x: Option[Int]): Unit
0 commit comments