parent
67e91558cf
commit
28a926cb67
2 changed files with 18 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue