From 404b5b5ff45b451090cfa717827698db56650bd8 Mon Sep 17 00:00:00 2001 From: Eduardo Bart Date: Tue, 21 Jun 2016 19:42:42 -0300 Subject: Fix #4390 --- lib/pure/asyncdispatch.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/pure') 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 -- cgit 1.4.1-2-gfad0