Skip to content

Commit 030249b

Browse files
committed
Adapt test: use class instead of type params
1 parent f0a060f commit 030249b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/patmat/i8690b.scala

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
def test[A, B](x: (A, B) | (B, A)) = x match {
1+
class A
2+
class B
3+
4+
def test(x: (A, B) | (B, A)) = x match {
25
case (u: A, v: B) => (u, v)
36
case (u: B, v: A) => (v, u)
47
}

0 commit comments

Comments
 (0)