Skip to content

Commit 34f6ac6

Browse files
authored
add regression test for #24076 (#24181)
Closes #24076
1 parent b9f6f2e commit 34f6ac6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/pos/i24076.scala

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
transparent inline def bug(using ValueOf[1]): Int = 1
2+
transparent inline def foo(inline arg: Any): Any =
3+
inline (arg, arg) match
4+
case (_, _) =>
5+
case _ =>
6+
end match
7+
val x = foo(bug)

0 commit comments

Comments
 (0)