This commit is contained in:
Eduardo Bart
2016-06-21 19:42:42 -03:00
parent 2405f8e347
commit 404b5b5ff4

View File

@@ -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