summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorEXetoC <exetoc@gmail.com>2014-05-03 23:32:14 +0200
committerEXetoC <exetoc@gmail.com>2014-05-03 23:32:14 +0200
commit8802688e9f13891b7f81b2d5cad401bc47cf52be (patch)
tree289489fda3a2c82a68cfcca9d35edfbb1b2c0e48 /tests
parenta21289f5d5ac51bf0459f512eb566af8819a722c (diff)
downloadNim-8802688e9f13891b7f81b2d5cad401bc47cf52be.tar.gz
Fix #1171.
Diffstat (limited to 'tests')
-rw-r--r--tests/async/tnestedpfuturetypeparam.nim8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/async/tnestedpfuturetypeparam.nim b/tests/async/tnestedpfuturetypeparam.nim
new file mode 100644
index 000000000..d0d87e567
--- /dev/null
+++ b/tests/async/tnestedpfuturetypeparam.nim
@@ -0,0 +1,8 @@
+import asyncdispatch, asyncnet
+
+proc main {.async.} =
+  proc f: PFuture[seq[int]] {.async.} =
+    await newAsyncSocket().connect("www.google.com", TPort(80))
+  let x = await f()
+
+main()