diff options
author | Dominik Picheta <dominikpicheta@googlemail.com> | 2016-06-21 23:52:27 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-06-21 23:52:27 +0100 |
commit | 6b334770b5e310d8a237b88aed5d10380671f7d2 (patch) | |
tree | 80f0c4382fd1c2f8d185bd7260dc4d68c694d8e5 /lib | |
parent | bdf53fe9a95f876570f020ab3b3e65aa4543630f (diff) | |
parent | 404b5b5ff45b451090cfa717827698db56650bd8 (diff) | |
download | Nim-6b334770b5e310d8a237b88aed5d10380671f7d2.tar.gz |
Merge pull request #4391 from edubart/fix-await
Fix #4390
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 082fe40ff..be6522c36 100644 --- a/lib/pure/asyncdispatch.nim +++ b/lib/pure/asyncdispatch.nim @@ -1707,7 +1707,7 @@ proc processBody(node, retFutureSym: NimNode, of nnkCommand, nnkCall: if node[0].kind == nnkIdent and node[0].ident == !"await": case node[1].kind - of nnkIdent, nnkInfix: + of nnkIdent, nnkInfix, nnkDotExpr: # await x # await x or y result = newNimNode(nnkYieldStmt, node).add(node[1]) # -> yield x |