commit
7d9042b1ba
2 changed files with 21 additions and 2 deletions
20
tests/macros/tbug1149.nim
Normal file
20
tests/macros/tbug1149.nim
Normal file
|
|
@ -0,0 +1,20 @@
|
||||||
|
discard """
|
||||||
|
msg: '''a
|
||||||
|
s
|
||||||
|
d
|
||||||
|
f'''
|
||||||
|
"""
|
||||||
|
|
||||||
|
type
|
||||||
|
Foo = object
|
||||||
|
s: char
|
||||||
|
|
||||||
|
iterator test2(f: string): Foo =
|
||||||
|
for i in f:
|
||||||
|
yield Foo(s: i)
|
||||||
|
|
||||||
|
macro test(): stmt =
|
||||||
|
for i in test2("asdf"):
|
||||||
|
echo i.s
|
||||||
|
|
||||||
|
test()
|
||||||
|
|
@ -1,6 +1,5 @@
|
||||||
discard """
|
discard """
|
||||||
disabled: true
|
msg: '''StmtList
|
||||||
output: '''StmtList
|
|
||||||
VarSection
|
VarSection
|
||||||
IdentDefs
|
IdentDefs
|
||||||
Ident !"x"
|
Ident !"x"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue