make nim bootstrap again for older versions

This commit is contained in:
Andreas Rumpf 2016-07-30 00:50:38 +02:00
commit a8edf67a28
6 changed files with 14 additions and 6 deletions

View file

@ -20,6 +20,8 @@
## **Note**: This interface will change as soon as the compiler supports
## closures and proper coroutines.
include "system/inclrtl"
when not defined(nimhygiene):
{.pragma: dirty.}
@ -456,7 +458,7 @@ template anyIt*(seq1, pred: untyped): bool =
break
result
template toSeq*(iter: untyped): untyped =
template toSeq*(iter: untyped): untyped {.oldimmediate.} =
## Transforms any iterator into a sequence.
##
## Example: