Skip to content

Commit

Permalink
proper fix
Browse files Browse the repository at this point in the history
  • Loading branch information
metagn committed Aug 7, 2022
1 parent 3d690a6 commit 8b7705d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/pure/collections/sequtils.nim
Original file line number Diff line number Diff line change
Expand Up @@ -791,7 +791,7 @@ template toSeq1(s: not iterator): untyped =
i += 1
result
else:
var result: seq[OutType] = @[]
var result: seq[OutType]# = @[]
for it in s:
result.add(it)
result
Expand All @@ -808,7 +808,7 @@ template toSeq2(iter: iterator): untyped =
result
else:
type OutType = typeof(iter2())
var result: seq[OutType] = @[]
var result: seq[OutType]# = @[]
when compiles(iter2()):
evalOnceAs(iter4, iter, false)
let iter3 = iter4()
Expand Down

0 comments on commit 8b7705d

Please sign in to comment.