Skip to content

Commit 917f6bb

Browse files
committed
Add regression test for scala#12723
1 parent f1252d8 commit 917f6bb

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/pos/i12723.scala

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
class Fun[|*|[_, _]] {
2+
enum ->[A, B] {
3+
case BiId[X, Y]() extends ((X |*| Y) -> (X |*| Y))
4+
}
5+
6+
def go[A, B](f: A -> B): Unit =
7+
f match {
8+
case ->.BiId() => ()
9+
}
10+
}

0 commit comments

Comments
 (0)