We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6b26186 commit 72ab3afCopy full SHA for 72ab3af
tests/run/i5067b.check
@@ -0,0 +1,3 @@
1
+match error
2
+match error nested
3
+not implemented error
tests/run/i5067b.scala
@@ -0,0 +1,33 @@
+object Test {
+ def main(args: Array[String]): Unit = {
+ class B[T] {}
4
+ object B {
5
+ def unapply[T](x: Any): Option[B[T]] = None
6
+ }
7
+ try {
8
+ val B(_) = null
9
+ } catch {
10
+ case e: MatchError => println("match error")
11
12
+
13
+ null match {
14
+ case null =>
15
16
17
+ case Some(_) => ()
18
19
20
+ case e: MatchError => println("match error nested")
21
22
23
24
25
+ ??? match {
26
+ case (_, _) => ()
27
+ case _ => ()
28
29
30
+ case e: NotImplementedError => println("not implemented error")
31
32
33
+}
0 commit comments