Open metagn opened 3 years ago
Same goes for iterator:
type Foo = static int
iterator bar(a, b: Foo): int =
yield a
yield b
for x in bar(1, 2):
echo x
Fails with a similar error
Edit: Goes for all routines actually
Interesting that this compiles:
type Foo = static int
template bar(a: Foo; b: Foo) = echo a + b # doesn't matter if a: Foo, b: Foo or a, b: Foo
bar(1, 1)
Example
Current Output
Expected Output
Additional Information
a, b: static int
works