mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-01 19:02:18 +00:00
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user