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 aa252fc commit 8f048a7Copy full SHA for 8f048a7
tests/pending/pos/quotedSepComp/Macro_1.scala
@@ -0,0 +1,5 @@
1
+import scala.quoted._
2
+object Macros {
3
+ inline def assert(expr: => Boolean): Unit = ~ assertImpl('(expr))
4
+ def assertImpl(expr: Expr[Boolean]) = '{ () }
5
+}
tests/pending/pos/quotedSepComp/Test_2.scala
+class Test {
+ import Macros._
+ val x = 1
+ assert(x != 0)
0 commit comments