Merge pull request #7599 from nim-lang/fix-typedesc-in-async
Fix some usages of typedesc in async procs
This commit is contained in:
commit
ab426faa22
3 changed files with 42 additions and 8 deletions
|
|
@ -11,7 +11,7 @@
|
|||
## *************
|
||||
## `asyncdispatch` module depends on the `asyncmacro` module to work properly.
|
||||
|
||||
import macros, strutils
|
||||
import macros, strutils, asyncfutures
|
||||
|
||||
proc skipUntilStmtList(node: NimNode): NimNode {.compileTime.} =
|
||||
# Skips a nest of StmtList's.
|
||||
|
|
@ -26,6 +26,8 @@ proc skipStmtList(node: NimNode): NimNode {.compileTime.} =
|
|||
|
||||
template createCb(retFutureSym, iteratorNameSym,
|
||||
strName, identName, futureVarCompletions: untyped) =
|
||||
bind finished
|
||||
|
||||
var nameIterVar = iteratorNameSym
|
||||
#{.push stackTrace: off.}
|
||||
proc identName {.closure.} =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue