Merge pull request #2767 from PhilipWitte/devel
Fix asyncdispatch.async bug with discard stmt
This commit is contained in:
commit
5ad9d874c3
1 changed files with 1 additions and 1 deletions
|
|
@ -1328,7 +1328,7 @@ proc processBody(node, retFutureSym: NimNode,
|
||||||
else: discard
|
else: discard
|
||||||
of nnkDiscardStmt:
|
of nnkDiscardStmt:
|
||||||
# discard await x
|
# discard await x
|
||||||
if node[0].kind != nnkEmpty and node[0][0].kind == nnkIdent and
|
if node[0].kind == nnkCommand and node[0][0].kind == nnkIdent and
|
||||||
node[0][0].ident == !"await":
|
node[0][0].ident == !"await":
|
||||||
var newDiscard = node
|
var newDiscard = node
|
||||||
result.createVar("futureDiscard_" & $toStrLit(node[0][1]), node[0][1],
|
result.createVar("futureDiscard_" & $toStrLit(node[0][1]), node[0][1],
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue