blob: 7bb0a7fc014d334e7ff0b07db07566fbe49ba7a8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
discard """
output: "x == 45ugh"
"""
template myAssert(cond: expr) =
when 3 <= 3:
let c = cond.astToStr
if not cond:
echo c, "ugh"
var x = 454
myAssert(x == 45)
|