diff options
author | Dominik Picheta <dominikpicheta@googlemail.com> | 2015-05-20 11:44:35 +0100 |
---|---|---|
committer | Dominik Picheta <dominikpicheta@googlemail.com> | 2015-05-20 11:44:35 +0100 |
commit | 5ad9d874c32a72ab473d3455b5d72f915729d195 (patch) | |
tree | 3682026559bc42d8fc380d8d5e9509bdd18db4e6 /lib | |
parent | 5d4ee87f3b18f145c77075ac96e303b39015a515 (diff) | |
parent | c936cf9e8ef356ff99b15829164ff664172a1613 (diff) | |
download | Nim-5ad9d874c32a72ab473d3455b5d72f915729d195.tar.gz |
Merge pull request #2767 from PhilipWitte/devel
Fix asyncdispatch.async bug with discard stmt
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pure/asyncdispatch.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pure/asyncdispatch.nim b/lib/pure/asyncdispatch.nim index 8849a8be3..8010e9ebc 100644 --- a/lib/pure/asyncdispatch.nim +++ b/lib/pure/asyncdispatch.nim @@ -1328,7 +1328,7 @@ proc processBody(node, retFutureSym: NimNode, else: discard of nnkDiscardStmt: # 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": var newDiscard = node result.createVar("futureDiscard_" & $toStrLit(node[0][1]), node[0][1], |