diff options
author | LemonBoy <LemonBoy@users.noreply.github.com> | 2018-09-07 16:42:38 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2018-09-07 16:42:38 +0200 |
commit | 90025e242db1f4b2f2bca186ee77ab1578545f15 (patch) | |
tree | 2836542cde075b0418fb1bba276b81a00a3685c3 /lib/pure | |
parent | 1e6eca973d9ef19176fe26d6bba394cd5a043897 (diff) | |
download | Nim-90025e242db1f4b2f2bca186ee77ab1578545f15.tar.gz |
Minor fixes for asyncjs (#8894)
* Minor fixes for asyncjs Mark internal procedures as used Allow .async. for more node kinds Make .async. work for nkStmtList * Fix logic error in both the async macros
Diffstat (limited to 'lib/pure')
-rw-r--r-- | lib/pure/asyncmacro.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pure/asyncmacro.nim b/lib/pure/asyncmacro.nim index 4665ad25f..9e0893a4d 100644 --- a/lib/pure/asyncmacro.nim +++ b/lib/pure/asyncmacro.nim @@ -327,8 +327,8 @@ macro async*(prc: untyped): untyped = ## Macro which processes async procedures into the appropriate ## iterators and yield statements. if prc.kind == nnkStmtList: + result = newStmtList() for oneProc in prc: - result = newStmtList() result.add asyncSingleProc(oneProc) else: result = asyncSingleProc(prc) |