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.
1 parent 60be18c commit 198817bCopy full SHA for 198817b
tests/neg/patmat.scala
@@ -12,7 +12,7 @@ object Test {
12
ca match {
13
case x: B =>
14
case X() =>
15
- case D() => // error: neither a subtype not a supertype
+ case D() => // ok, but scalac disagrees
16
}
17
val cc = new C
18
cc match {
0 commit comments