Skip to content

Commit 5bafaac

Browse files
committed
Add a TupleXXL unreachable test case
1 parent e56b75e commit 5bafaac

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

tests/warn/i19084.scala

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
2+
3+
class Test:
4+
def t1(y: (
5+
Int, Int, Int, Int, Int, Int, Int, Int, Int, Int,
6+
"Bob", Int, 33, Int,
7+
Int, Int, Int, Int, Int, Int, Int, Int, Int, Int)
8+
): Unit = y match
9+
case b @ (x0, x1, x2, x3, x4, x5, x6, x7, x8, x9,
10+
"Bob", y1, 33, y2,
11+
z0, z1, z2, z3, z4, z5, z6, z7, z8, z9)
12+
=> ()
13+
case b @ (x0, x1, x2, x3, x4, x5, x6, x7, x8, x9, // warn: unreachable
14+
"Bob", y1, 33, y2,
15+
z0, z1, z2, z3, z4, z5, z6, z7, z8, z9)
16+
=> ()
17+
case _ => ()

0 commit comments

Comments
 (0)