Fix #4390
This commit is contained in:
parent
2405f8e347
commit
404b5b5ff4
1 changed files with 1 additions and 1 deletions
|
|
@ -1707,7 +1707,7 @@ proc processBody(node, retFutureSym: NimNode,
|
||||||
of nnkCommand, nnkCall:
|
of nnkCommand, nnkCall:
|
||||||
if node[0].kind == nnkIdent and node[0].ident == !"await":
|
if node[0].kind == nnkIdent and node[0].ident == !"await":
|
||||||
case node[1].kind
|
case node[1].kind
|
||||||
of nnkIdent, nnkInfix:
|
of nnkIdent, nnkInfix, nnkDotExpr:
|
||||||
# await x
|
# await x
|
||||||
# await x or y
|
# await x or y
|
||||||
result = newNimNode(nnkYieldStmt, node).add(node[1]) # -> yield x
|
result = newNimNode(nnkYieldStmt, node).add(node[1]) # -> yield x
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue