blob: 304e1c692ab416655fab6a8004027d44c8d299d5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
|
discard """
output: "110"
"""
template arithOps: expr = (`+` | `-` | `*`)
template testOr{ (arithOps{f})(a, b) }(a, b, f: expr): expr = f(a+1, b)
let xx = 10
echo 10*xx
|