Skip to content

Commit eab19e3

Browse files
authored
Test case to show that #16252 works with transparent (#16262)
Closes #16252
2 parents 5bd67bb + 1f3618f commit eab19e3

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/run/i16252.scala

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
class Baz:
2+
transparent inline def foo: Int = bar(zero)
3+
transparent inline def bar(inline i: Int): Int = inline i match
4+
case 0 => 0
5+
case _ => scala.compiletime.error("XD")
6+
private transparent inline def zero = 0
7+
8+
@main
9+
def Test =
10+
println(Baz().foo)

0 commit comments

Comments
 (0)