summary refs log tree commit diff stats
path: root/tests/async/tasynctry2.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/async/tasynctry2.nim')
-rw-r--r--tests/async/tasynctry2.nim16
1 files changed, 0 insertions, 16 deletions
diff --git a/tests/async/tasynctry2.nim b/tests/async/tasynctry2.nim
deleted file mode 100644
index 444a058be..000000000
--- a/tests/async/tasynctry2.nim
+++ /dev/null
@@ -1,16 +0,0 @@
-discard """
-  file: "tasynctry2.nim"
-  errormsg: "\'yield\' cannot be used within \'try\' in a non-inlined iterator"
-  line: 15
-"""
-import asyncdispatch
-
-proc foo(): Future[bool] {.async.} = discard
-
-proc test5(): Future[int] {.async.} =
-  try:
-    discard await foo()
-    raise newException(ValueError, "Test5")
-  except:
-    discard await foo()
-    result = 0