diff options
author | Philip Witte <witte2008@gmail.com> | 2015-05-20 03:34:48 -0700 |
---|---|---|
committer | Philip Witte <witte2008@gmail.com> | 2015-05-20 03:34:48 -0700 |
commit | c936cf9e8ef356ff99b15829164ff664172a1613 (patch) | |
tree | 3682026559bc42d8fc380d8d5e9509bdd18db4e6 /lib/pure/asyncdispatch.nim | |
parent | 5d4ee87f3b18f145c77075ac96e303b39015a515 (diff) | |
download | Nim-c936cf9e8ef356ff99b15829164ff664172a1613.tar.gz |
Fix bug with asyncdispatch.async and discard statements.
Diffstat (limited to 'lib/pure/asyncdispatch.nim')
-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], |