diff --git a/lib/pure/asyncdispatch.nim b/lib/pure/asyncdispatch.nim index 082fe40ff4..be6522c363 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