first version of 'spawn'
This commit is contained in:
parent
b961e47bfe
commit
8e08ff559f
9 changed files with 188 additions and 37 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue