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 69eb939 commit 5f3de54Copy full SHA for 5f3de54
tests/pos-macros/i11835/X.scala
@@ -0,0 +1,12 @@
1
+import scala.quoted.*
2
+
3
+object X:
4
+ inline def blah(inline b: Boolean = true): Unit =
5
+ ${ _blah('b) }
6
7
+ private def _blah(b: Expr[Boolean])(using Quotes): Expr[Unit] =
8
+ import quotes.reflect.*
9
+ println("="*120)
10
+ println(b.asTerm)
11
+ println(b.valueOrError)
12
+ '{()}
tests/pos-macros/i11835/Y.scala
@@ -0,0 +1,3 @@
+object Y:
+ X.blah(true) // ok
+ X.blah() // error
0 commit comments