mirror of
https://github.com/nim-lang/Nim.git
synced 2026-07-28 11:26:39 +00:00
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user