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