summary refs log tree commit diff stats
path: root/tests/async/tasync_nofuture.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/async/tasync_nofuture.nim')
-rw-r--r--tests/async/tasync_nofuture.nim11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/async/tasync_nofuture.nim b/tests/async/tasync_nofuture.nim
new file mode 100644
index 000000000..16155601a
--- /dev/null
+++ b/tests/async/tasync_nofuture.nim
@@ -0,0 +1,11 @@
+discard """
+  errormsg: "await expects Future[T], got int"
+  cmd: "nim c $file"
+  file: "asyncmacro.nim"
+"""
+import async
+
+proc a {.async.} =
+  await 0
+
+waitFor a()