implicit generics types as return types. removed the error message for capturing incorrect uses of `proc`
This commit is contained in:
parent
2f4ae65917
commit
251c44ff04
6 changed files with 67 additions and 60 deletions
|
|
@ -5,7 +5,7 @@ discard """
|
|||
type TAlphabet = enum
|
||||
A, B, C
|
||||
|
||||
iterator items(E: typedesc): E =
|
||||
iterator items(E: typedesc{enum}): E =
|
||||
for v in low(E)..high(E):
|
||||
yield v
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue