diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2020-06-09 20:39:26 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-09 20:39:26 +0200 |
commit | 6085ad95ff4f712d14de2786a8bd5e2cea4397df (patch) | |
tree | 550e46f688c0a957becf977b29c6b46aadd7525d /tests/async | |
parent | b3029ba2139a018946218e1917918d1a1ef019e2 (diff) | |
download | Nim-6085ad95ff4f712d14de2786a8bd5e2cea4397df.tar.gz |
fixes #14279 (#14618)
Diffstat (limited to 'tests/async')
-rw-r--r-- | tests/async/tasynctry.nim | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/async/tasynctry.nim b/tests/async/tasynctry.nim index fa3493616..25eab87fb 100644 --- a/tests/async/tasynctry.nim +++ b/tests/async/tasynctry.nim @@ -5,6 +5,7 @@ Specific except Multiple idents in except Multiple except branches Multiple except branches 2 +success ''' targets: "c" """ @@ -101,3 +102,17 @@ assert y.waitFor() == 2 y = test4() assert y.waitFor() == 2 + +# bug #14279 + +proc expandValue: Future[int] {.async.} = + return 0 + +proc a(b: int): Future[void] {.async.} = + return + +proc b: Future[void] {.async.} = + await a(await expandValue()) + echo "success" + +waitFor(b()) |