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 15b9cd8 commit 058105bCopy full SHA for 058105b
tests/pos/i5547.scala
@@ -0,0 +1,12 @@
1
+import scala.quoted._
2
+
3
+object scalatest {
4
+ inline def assert1(condition: => Boolean): Unit =
5
+ ${assertImpl('condition, '{""})}
6
7
+ inline def assert2(condition: => Boolean): Unit =
8
+ ${ assertImpl('condition, "".toExpr) }
9
10
+ def assertImpl(condition: Expr[Boolean], clue: Expr[Any]) given QuoteContext: Expr[Unit] =
11
+ '{}
12
+}
0 commit comments