mirror of
https://github.com/nim-lang/Nim.git
synced 2026-07-18 15:01:24 +00:00
fixes a regression where memset was used without including <string.h>
This commit is contained in:
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
|
||||
Reference in New Issue
Block a user