Skip to content

Commit 8f048a7

Browse files
committed
Add test to pending
This currently fails with "splice outside quote". Once macro expansion is implemented it should compile.
1 parent aa252fc commit 8f048a7

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
class Test {
2+
import Macros._
3+
val x = 1
4+
assert(x != 0)
5+
}

0 commit comments

Comments
 (0)