From 93709accc4bbdf903febcef05c542a29dc30f364 Mon Sep 17 00:00:00 2001 From: Hamza Remmal Date: Wed, 15 Oct 2025 16:29:19 +0800 Subject: [PATCH] add regression test for #24076 (#24181) Closes #24076 [Cherry-picked 34f6ac6cb301b613143a5aedd14089990ad1498e] --- tests/pos/i24076.scala | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 tests/pos/i24076.scala diff --git a/tests/pos/i24076.scala b/tests/pos/i24076.scala new file mode 100644 index 000000000000..6436e1f1754a --- /dev/null +++ b/tests/pos/i24076.scala @@ -0,0 +1,7 @@ +transparent inline def bug(using ValueOf[1]): Int = 1 +transparent inline def foo(inline arg: Any): Any = + inline (arg, arg) match + case (_, _) => + case _ => + end match +val x = foo(bug)