debugger compiles again

This commit is contained in:
Araq 2012-09-13 00:12:14 +02:00
commit eb72c7c0a0
3 changed files with 8 additions and 4 deletions

View file

@ -1,5 +1,6 @@
discard """
output: "110"
output: '''110
true'''
"""
template arithOps: expr = (`+` | `-` | `*`)

View file

@ -21,7 +21,7 @@ test "templates can be redefined multiple times":
template customAssert(cond: bool, msg: string): stmt =
if not cond: fail(msg)
template assertion_failed(body: stmt) =
template assertion_failed(body: stmt) {.immediate.} =
template fail(msg: string): stmt = body
assertion_failed: check msg == "first fail path"