Remove expr/stmt (#5857)
This commit is contained in:
parent
52ff244d5d
commit
000b8afd26
168 changed files with 497 additions and 529 deletions
|
|
@ -24,7 +24,7 @@ bb
|
|||
|
||||
const s = @[1,2,3]
|
||||
|
||||
macro foo: stmt =
|
||||
macro foo: typed =
|
||||
for e in s:
|
||||
echo e
|
||||
|
||||
|
|
@ -34,7 +34,7 @@ static:
|
|||
for e in s:
|
||||
echo e
|
||||
|
||||
macro bar(x: static[seq[int]]): stmt =
|
||||
macro bar(x: static[seq[int]]): untyped =
|
||||
for e in x:
|
||||
echo e
|
||||
|
||||
|
|
@ -55,7 +55,7 @@ static:
|
|||
var m2: TData = data
|
||||
for x in m2.numbers: echo x
|
||||
|
||||
macro ff(d: static[TData]): stmt =
|
||||
macro ff(d: static[TData]): typed =
|
||||
for x in d.letters:
|
||||
echo x
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue