Fix some usages of typedesc in async procs

This also fixes a compilation error in modules, based only on the
new async module (i.e. not importing the full asyncdispatch)
This commit is contained in:
Zahary Karadjov 2018-04-13 12:44:47 +03:00
commit 10142e4a80
3 changed files with 42 additions and 8 deletions

View file

@ -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.} =