Skip to content

Commit 22fcff1

Browse files
test: add in a regression test for #8321 (#17482)
Closes #8321
2 parents f67f300 + ab64f15 commit 22fcff1

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/pos/i8321.scala

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
2+
object Test:
3+
inline def concat[A <: Tuple, B <: Tuple](
4+
a: Option[A],
5+
b: Option[B]
6+
): Option[Tuple.Concat[A, B]] =
7+
a.zip(b).map(_ ++ _)
8+
9+
concat(Some(1, 2), Some(3, 4))

0 commit comments

Comments
 (0)