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.
2 parents 3589a1d + d9c6537 commit 866ac14Copy full SHA for 866ac14
docs/docs/reference/metaprogramming/macros.md
@@ -37,7 +37,7 @@ prints it again in an error message if it evaluates to `false`.
37
${ assertImpl('expr) }
38
39
def assertImpl(expr: Expr[Boolean]) = '{
40
- if !($expr) then
+ if (!$expr)
41
throw new AssertionError(s"failed assertion: ${${ showExpr(expr) }}")
42
}
43
0 commit comments