Skip to content

Commit

Permalink
Test case to show that #16252 works with transparent (#16262)
Browse files Browse the repository at this point in the history
Closes #16252
  • Loading branch information
odersky authored Oct 30, 2022
2 parents 5bd67bb + 1f3618f commit eab19e3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/run/i16252.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
class Baz:
transparent inline def foo: Int = bar(zero)
transparent inline def bar(inline i: Int): Int = inline i match
case 0 => 0
case _ => scala.compiletime.error("XD")
private transparent inline def zero = 0

@main
def Test =
println(Baz().foo)

0 comments on commit eab19e3

Please sign in to comment.