Skip to content

Commit bd33ca9

Browse files
Disable pos-deep-subtype/tuples23.scala for now
Rewrite match are going to be replace by quotes and splices, to be reinvestigated later.
1 parent 8a1cbe5 commit bd33ca9

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
object Test extends App {
2-
val x23 = (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23)
2+
val x23 = (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22)
33
type T23 = (Int, Int, Int, Int, Int,
44
Int, Int, Int, Int, Int,
55
Int, Int, Int, Int, Int,
66
Int, Int, Int, Int, Int,
7-
Int, Int, Int)
7+
Int, Int)
88
val x23c: T23 = x23
99
println(x23)
1010
assert(x23(0) == 1)
11-
assert(x23(22) == 23)
11+
assert(x23(21) == 22)
1212

1313
x23 match {
14-
case (x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13, x14, x15, x16, x17, x18, x19, x20, x21, x22, x23) =>
15-
println(x1 + x2 + x3 + x4 + x5 + x6 + x7 + x8 + x9 + x10 + x11 + x12 + x13 + x14 + x15 + x16 + x17 + x18 + x19 + x20 + x21 + x22 + x23)
14+
case (x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13, x14, x15, x16, x17, x18, x19, x20, x21, x22) =>
15+
println(x1 + x2 + x3 + x4 + x5 + x6 + x7 + x8 + x9 + x10 + x11 + x12 + x13 + x14 + x15 + x16 + x17 + x18 + x19 + x20 + x21 + x22)
1616
}
1717
inline def decompose3 = inline x23 match { case x *: y *: xs => (x, y, xs) }
1818

@@ -23,5 +23,5 @@ object Test extends App {
2323
println(s"$x23 -> $x, $y, $xs")
2424
}
2525

26-
val x23s: 23 = x23.size
27-
}
26+
val x23s: 22 = x23.size
27+
}

0 commit comments

Comments
 (0)