From 4911d25807d8943e7dbecb7c5f442ef597a8dd3b Mon Sep 17 00:00:00 2001 From: Zahary Karadjov Date: Fri, 6 Jul 2018 04:17:08 +0300 Subject: [PATCH] fix a minor issue preventing the usage of the async pragma in certain generated code --- asyncdispatch2/asyncmacro2.nim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/asyncdispatch2/asyncmacro2.nim b/asyncdispatch2/asyncmacro2.nim index a7395e1..2b573df 100644 --- a/asyncdispatch2/asyncmacro2.nim +++ b/asyncdispatch2/asyncmacro2.nim @@ -185,6 +185,8 @@ proc processBody(node, retFutureSym: NimNode, proc getName(node: NimNode): string {.compileTime.} = case node.kind + of nnkSym: + return $node of nnkPostfix: return node[1].strVal of nnkIdent: