This commit is contained in:
cooldome
2019-03-21 05:48:54 +00:00
committed by Andreas Rumpf
parent 67e91558cf
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