Merge pull request #7599 from nim-lang/fix-typedesc-in-async

Fix some usages of typedesc in async procs
This commit is contained in:
zah 2018-04-13 17:33:05 +03:00 • committed by GitHub
commit ab426faa22
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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.} =