* fixes #15804 * fix the existing test * add the testcase for #15804 Co-authored-by: narimiran <narimiran@disroot.org>
This commit is contained in:
parent
eb429988cd
commit
dfd8a83f35
3 changed files with 27 additions and 15 deletions
|
|
@ -1,7 +1,7 @@
|
|||
discard """
|
||||
errormsg: "undeclared identifier: 'await'"
|
||||
errormsg: "'yield' only allowed in an iterator"
|
||||
cmd: "nim c $file"
|
||||
file: "tasync_noasync.nim"
|
||||
file: "asyncmacro.nim"
|
||||
"""
|
||||
import async
|
||||
|
||||
|
|
@ -12,4 +12,4 @@ await a()
|
|||
|
||||
# if we overload a fallback handler to get
|
||||
# await only available within {.async.}
|
||||
# we would need `{.dirty.}` templates for await
|
||||
# we would need `{.dirty.}` templates for await
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue