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 f0a060f commit 030249bCopy full SHA for 030249b
tests/patmat/i8690b.scala
@@ -1,4 +1,7 @@
1
-def test[A, B](x: (A, B) | (B, A)) = x match {
+class A
2
+class B
3
+
4
+def test(x: (A, B) | (B, A)) = x match {
5
case (u: A, v: B) => (u, v)
6
case (u: B, v: A) => (v, u)
7
}
0 commit comments