diff options
author | Araq <rumpf_a@web.de> | 2014-04-30 00:13:59 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2014-04-30 00:13:59 +0200 |
commit | 6a39155399f73933fae5b66c7a36a51a8827cc9e (patch) | |
tree | ef8cd6a7aa9251acfc0be6abb117f63996b98cf8 | |
parent | 0049a2a388585ff494fd0ebac780636cbfc808f8 (diff) | |
download | Nim-6a39155399f73933fae5b66c7a36a51a8827cc9e.tar.gz |
small bugfix for iterators
-rw-r--r-- | compiler/semstmts.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/semstmts.nim b/compiler/semstmts.nim index 2429e4183..fc4704b5c 100644 --- a/compiler/semstmts.nim +++ b/compiler/semstmts.nim @@ -655,7 +655,7 @@ proc semFor(c: PContext, n: PNode): PNode = n.sons[length-2] = semExprNoDeref(c, n.sons[length-2], {efWantIterator}) var call = n.sons[length-2] let isCallExpr = call.kind in nkCallKinds - if isCallExpr and call.sons[0].sym.magic != mNone: + if isCallExpr and call[0].kind == nkSym and call[0].sym.magic != mNone: if call.sons[0].sym.magic == mOmpParFor: result = semForVars(c, n) result.kind = nkParForStmt |