mirror of
https://github.com/logos-storage/nim-chronos.git
synced 2026-01-10 01:13:07 +00:00
Merge pull request #51 from status-im/fix-error
Fixed compilation error for async lambdas
This commit is contained in:
commit
6d7864aa84
@ -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