fixes a regression where memset was used without including <string.h>

This commit is contained in:
Araq 2013-12-03 01:59:38 +01:00
commit fe983b1309
5 changed files with 29 additions and 2 deletions

View 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