summary refs log tree commit diff stats
path: root/lib/pure
diff options
context:
space:
mode:
authorZahary Karadjov <zahary@gmail.com>2018-04-13 12:44:47 +0300
committerZahary Karadjov <zahary@gmail.com>2018-04-13 13:31:55 +0300
commit10142e4a80a2eb8107c382ffcf30ab9fba51976a (patch)
treef57a32794d68875aceea76a488f21c941ae599ff /lib/pure
parent44ee3c27c08d3908b336581f67680d26b9f8a528 (diff)
downloadNim-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.nim4
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.} =