From b779a877b353bd59b9f4b6db4b939759254d9bc5 Mon Sep 17 00:00:00 2001 From: Hamza Remmal Date: Tue, 19 Aug 2025 13:55:36 +0200 Subject: [PATCH] chore: add regression test for #23776 [Cherry-picked f581944e76db0d4fcd52a61e537b74dd6181f1d8] --- tests/run/i23776.check | 1 + tests/run/i23776.scala | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100644 tests/run/i23776.check create mode 100644 tests/run/i23776.scala diff --git a/tests/run/i23776.check b/tests/run/i23776.check new file mode 100644 index 000000000000..f2b2a017d25a --- /dev/null +++ b/tests/run/i23776.check @@ -0,0 +1 @@ +a = 0, b = 1, c = 2 diff --git a/tests/run/i23776.scala b/tests/run/i23776.scala new file mode 100644 index 000000000000..9d4a98144f2e --- /dev/null +++ b/tests/run/i23776.scala @@ -0,0 +1,7 @@ +inline def f(t0: Int, t1: Int, t2: Int) = { + inline (t0, t1, t2) match { + case (a: Int, b: Int, c: Int) => println(s"a = $a, b = $b, c = $c") + } +} + +@main def Test = f(0, 1, 2)