Skip to content

Commit 93709ac

Browse files
hamzaremmaltgodzik
authored andcommitted
add regression test for scala#24076 (scala#24181)
Closes scala#24076 [Cherry-picked 34f6ac6]
1 parent 6448ec9 commit 93709ac

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)