summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorDominik Picheta <dominikpicheta@googlemail.com>2016-06-21 23:52:27 +0100
committerGitHub <noreply@github.com>2016-06-21 23:52:27 +0100
commit6b334770b5e310d8a237b88aed5d10380671f7d2 (patch)
tree80f0c4382fd1c2f8d185bd7260dc4d68c694d8e5 /lib
parentbdf53fe9a95f876570f020ab3b3e65aa4543630f (diff)
parent404b5b5ff45b451090cfa717827698db56650bd8 (diff)
downloadNim-6b334770b5e310d8a237b88aed5d10380671f7d2.tar.gz
Merge pull request #4391 from edubart/fix-await
Fix #4390
Diffstat (limited to 'lib')
-rw-r--r--lib/pure/asyncdispatch.nim2
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