mirror of
https://github.com/logos-storage/nim-chronos.git
synced 2026-01-07 07:53:09 +00:00
Fixed compilation error for async lambdas
This commit is contained in:
parent
693f741c8d
commit
aacfa59c76
@ -249,7 +249,8 @@ proc asyncSingleProc(prc: NimNode): NimNode {.compileTime.} =
|
||||
# -> return retFuture
|
||||
outerProcBody.add newNimNode(nnkReturnStmt, prc.body[^1]).add(retFutureSym)
|
||||
|
||||
prc.addPragma(newColonExpr(ident "stackTrace", ident "off"))
|
||||
if prc.kind != nnkLambda: # TODO: Nim bug?
|
||||
prc.addPragma(newColonExpr(ident "stackTrace", ident "off"))
|
||||
|
||||
result = prc
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user