diff options
author | Araq <rumpf_a@web.de> | 2014-04-16 08:44:57 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2014-04-16 08:44:57 +0200 |
commit | 8e08ff559f4c03587c683b1bf2ef71f256af3824 (patch) | |
tree | 58b3814cc079243ab759ba80e1d7a7802fa0caab /compiler/sigmatch.nim | |
parent | b961e47bfe519bf456a3e8a0dba3025a3c047b04 (diff) | |
download | Nim-8e08ff559f4c03587c683b1bf2ef71f256af3824.tar.gz |
first version of 'spawn'
Diffstat (limited to 'compiler/sigmatch.nim')
-rw-r--r-- | compiler/sigmatch.nim | 1 |
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: |