Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
nitely committed Dec 28, 2024
1 parent 4b86bfd commit 0e0d4d1
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/async/tasync_error_tracking.nim
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,13 @@ block:
await bar(fooFut)

waitFor main()

block:
template good =
proc foo() {.async, raises: [MyError].} =
err(false)
template missingRaise =
proc foo() {.async, raises: [].} =
err(false)
doAssert compiles(good())
doAssert not compiles(missingRaise())

0 comments on commit 0e0d4d1

Please sign in to comment.