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.
1 parent 5bd67bb commit 96c5efaCopy full SHA for 96c5efa
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 main =
10
+ println(Baz().foo)
0 commit comments