mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-28 08:54:53 +00:00
* fix asyncmacro * Apply suggestions from code review * Update lib/pure/asyncmacro.nim
This commit is contained in:
@@ -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 =
|
||||
|
||||
@@ -1,8 +1,3 @@
|
||||
discard """
|
||||
action: compile
|
||||
"""
|
||||
# XXX: action should be run!
|
||||
|
||||
import asyncdispatch
|
||||
|
||||
proc completeOnReturn(fut: FutureVar[string], x: bool) {.async.} =
|
||||
|
||||
Reference in New Issue
Block a user