summary refs log tree commit diff stats
path: root/tests/async
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2016-07-08 18:08:34 +0200
committerAndreas Rumpf <rumpf_a@web.de>2016-07-08 18:08:34 +0200
commit1d186ee9c335a54ae9700110afe4ec9e888b7b9d (patch)
tree18d5182658e2c90ac9cf0ad3708871164c13adf4 /tests/async
parentd83eb7064345ae09df927eedf53b4661a2341ffa (diff)
downloadNim-1d186ee9c335a54ae9700110afe4ec9e888b7b9d.tar.gz
fixes #2377
Diffstat (limited to 'tests/async')
-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)