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.
if
1 parent 3589a1d commit d9c6537Copy full SHA for d9c6537
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