You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the code sample below I incorrectly exported items[T]* when it should be items*[T]. And Nim reports: Error: iterator needs a return type.
iteratoritems[T]*(s: seq[T]): T =# Error: iterator needs a return typefor i in system.items(s):
yield i
It should say Error: invalid indentation; an export marker '*' follows the declared identifier. Nim correctly reports the error for procs and types in the sample below.
I'm running off devel.
In the code sample below I incorrectly exported
items[T]*
when it should beitems*[T]
. And Nim reports:Error: iterator needs a return type
.It should say
Error: invalid indentation; an export marker '*' follows the declared identifier
. Nim correctly reports the error for procs and types in the sample below.The text was updated successfully, but these errors were encountered: