diff --git a/tests/run/i16252.scala b/tests/run/i16252.scala new file mode 100644 index 000000000000..df08a32b0ff1 --- /dev/null +++ b/tests/run/i16252.scala @@ -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) \ No newline at end of file