fix #9695 asyncmacro: tfuturevar fails when activated [backport: 1.0] (#16090)

* fix asyncmacro

* Apply suggestions from code review

* Update lib/pure/asyncmacro.nim
This commit is contained in:
flywind
2020-11-23 00:16:42 +08:00
committed by GitHub
parent 2841cc6e97
commit 6f1a72069a
2 changed files with 2 additions and 6 deletions

View File

@@ -1,8 +1,3 @@
discard """
action: compile
"""
# XXX: action should be run!
import asyncdispatch
proc completeOnReturn(fut: FutureVar[string], x: bool) {.async.} =