diff options
author | Zahary Karadjov <zahary@gmail.com> | 2018-04-13 12:44:47 +0300 |
---|---|---|
committer | Zahary Karadjov <zahary@gmail.com> | 2018-04-13 13:31:55 +0300 |
commit | 10142e4a80a2eb8107c382ffcf30ab9fba51976a (patch) | |
tree | f57a32794d68875aceea76a488f21c941ae599ff /lib/pure | |
parent | 44ee3c27c08d3908b336581f67680d26b9f8a528 (diff) | |
download | Nim-10142e4a80a2eb8107c382ffcf30ab9fba51976a.tar.gz |
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)
Diffstat (limited to 'lib/pure')
-rw-r--r-- | lib/pure/asyncmacro.nim | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/pure/asyncmacro.nim b/lib/pure/asyncmacro.nim index 5e2fdc7d1..96a6fa158 100644 --- a/lib/pure/asyncmacro.nim +++ b/lib/pure/asyncmacro.nim @@ -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.} = |