blob: 5c4cb8530979a79649c014cb57b835e93f048060 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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()
|