summary refs log tree commit diff stats
path: root/tests/async/tgeneric_async.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/async/tgeneric_async.nim')
-rw-r--r--tests/async/tgeneric_async.nim9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/async/tgeneric_async.nim b/tests/async/tgeneric_async.nim
new file mode 100644
index 000000000..af6370181
--- /dev/null
+++ b/tests/async/tgeneric_async.nim
@@ -0,0 +1,9 @@
+
+import asyncdispatch
+
+when true:
+  # bug #2377
+  proc test[T](v: T) {.async.} =
+    echo $v
+
+  asyncCheck test[int](1)