We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4c77f62 + b93763a commit d482108Copy full SHA for d482108
tests/neg/18493.check
@@ -0,0 +1,8 @@
1
+-- [E030] Match case Unreachable Error: tests/neg/18493.scala:6:9 ------------------------------------------------------
2
+6 | case "abc" => // error
3
+ | ^^^^^
4
+ | Unreachable case
5
+-- [E030] Match case Unreachable Error: tests/neg/18493.scala:12:9 -----------------------------------------------------
6
+12 | case "abc" => // error
7
8
tests/neg/18493.scala
@@ -0,0 +1,14 @@
+//> using options -Werror
+object PartialFunctionNoWarning {
+ // nice warning
+ "abc" match {
+ case "abc" =>
+ case "abc" => // error
+ }
+
9
+ // no warnings
10
+ val pf: PartialFunction[String, Unit] = {
11
12
13
14
+}
0 commit comments