make tests green again
This commit is contained in:
parent
c38a608c90
commit
9364369c1f
9 changed files with 34 additions and 25 deletions
|
|
@ -1,11 +1,11 @@
|
|||
discard """
|
||||
output: '''3030
|
||||
output: '''0
|
||||
true
|
||||
3'''
|
||||
"""
|
||||
|
||||
template arithOps: untyped = (`+` | `-` | `*`)
|
||||
template testOr{ (arithOps{f})(a, b) }(a, b, f: untyped): untyped = f(a+1, b)
|
||||
template testOr{ (arithOps{f})(a, b) }(a, b, f: untyped): untyped = f(a mod 10, b)
|
||||
|
||||
let xx = 10
|
||||
echo 10*xx
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue