summary refs log tree commit diff stats
path: root/compiler/sigmatch.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2014-04-16 08:44:57 +0200
committerAraq <rumpf_a@web.de>2014-04-16 08:44:57 +0200
commit8e08ff559f4c03587c683b1bf2ef71f256af3824 (patch)
tree58b3814cc079243ab759ba80e1d7a7802fa0caab /compiler/sigmatch.nim
parentb961e47bfe519bf456a3e8a0dba3025a3c047b04 (diff)
downloadNim-8e08ff559f4c03587c683b1bf2ef71f256af3824.tar.gz
first version of 'spawn'
Diffstat (limited to 'compiler/sigmatch.nim')
-rw-r--r--compiler/sigmatch.nim1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/sigmatch.nim b/compiler/sigmatch.nim
index 9d1585c56..6b85542d3 100644
--- a/compiler/sigmatch.nim
+++ b/compiler/sigmatch.nim
@@ -1284,6 +1284,7 @@ proc prepareOperand(c: PContext; formal: PType; a: PNode): PNode =
     result = a
   elif a.typ.isNil:
     let flags = if formal.kind == tyIter: {efDetermineType, efWantIterator}
+                elif formal.kind == tyStmt: {efDetermineType, efWantStmt}
                 else: {efDetermineType}
     result = c.semOperand(c, a, flags)
   else: