We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5bd67bb + 1f3618f commit eab19e3Copy full SHA for eab19e3
tests/run/i16252.scala
@@ -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