summary refs log tree commit diff stats
path: root/lib/pure
diff options
context:
space:
mode:
authorflywind <43030857+xflywind@users.noreply.github.com>2020-11-23 00:16:42 +0800
committerGitHub <noreply@github.com>2020-11-22 17:16:42 +0100
commit6f1a72069a6992850813cd99d4d3aec4e595c438 (patch)
treee090f3cfde668f7ea0e4500c51dc525c9b750128 /lib/pure
parent2841cc6e97da3822eb778b0cbd138ebd1fc5cec0 (diff)
downloadNim-6f1a72069a6992850813cd99d4d3aec4e595c438.tar.gz
fix #9695 asyncmacro: tfuturevar fails when activated [backport: 1.0] (#16090)
* fix asyncmacro

* Apply suggestions from code review

* Update lib/pure/asyncmacro.nim
Diffstat (limited to 'lib/pure')
-rw-r--r--lib/pure/asyncmacro.nim3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/pure/asyncmacro.nim b/lib/pure/asyncmacro.nim
index 579e9fede..a70508736 100644
--- a/lib/pure/asyncmacro.nim
+++ b/lib/pure/asyncmacro.nim
@@ -118,7 +118,8 @@ proc getFutureVarIdents(params: NimNode): seq[NimNode] {.compileTime.} =
   for i in 1 ..< len(params):
     expectKind(params[i], nnkIdentDefs)
     if params[i][1].kind == nnkBracketExpr and
-       params[i][1][0].eqIdent("futurevar"):
+       params[i][1][0].eqIdent(FutureVar.astToStr):
+      ## eqIdent: first char is case sensitive!!!
       result.add(params[i][0])
 
 proc isInvalidReturnType(typeName: string): bool =