summary refs log tree commit diff stats
path: root/tests/async
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2020-06-09 20:39:26 +0200
committerGitHub <noreply@github.com>2020-06-09 20:39:26 +0200
commit6085ad95ff4f712d14de2786a8bd5e2cea4397df (patch)
tree550e46f688c0a957becf977b29c6b46aadd7525d /tests/async
parentb3029ba2139a018946218e1917918d1a1ef019e2 (diff)
downloadNim-6085ad95ff4f712d14de2786a8bd5e2cea4397df.tar.gz
fixes #14279 (#14618)
Diffstat (limited to 'tests/async')
-rw-r--r--tests/async/tasynctry.nim15
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())