This commit is contained in:
cooldome 2019-03-21 05:48:54 +00:00 • committed by Andreas Rumpf
commit 28a926cb67
2 changed files with 18 additions and 3 deletions

View file

@ -58,4 +58,18 @@ block:
var y = 2
echo "block expression works"
y*y
doAssert x == 4
doAssert x == 4
# bug 10861
macro foo(a: untyped): untyped =
a
let c1 = foo:
1 + 1
const c2 = foo:
1 + 1
const c3 =
foo: 1 + 1