fixes a regression where memset was used without including <string.h>
This commit is contained in:
parent
5dcfa97fb9
commit
fe983b1309
5 changed files with 29 additions and 2 deletions
13
tests/reject/twrongiter.nim
Normal file
13
tests/reject/twrongiter.nim
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
discard """
|
||||
line: 14
|
||||
errormsg: "type mismatch"
|
||||
"""
|
||||
|
||||
proc first(it: iterator(): int): seq[int] =
|
||||
return @[]
|
||||
|
||||
iterator primes(): int =
|
||||
yield 1
|
||||
|
||||
for i in first(primes):
|
||||
break
|
||||
Loading…
Add table
Add a link
Reference in a new issue