summary refs log tree commit diff stats
path: root/tests/async
diff options
context:
space:
mode:
authorDominik Picheta <dominikpicheta@googlemail.com>2014-05-03 22:51:03 +0100
committerDominik Picheta <dominikpicheta@googlemail.com>2014-05-03 22:51:03 +0100
commit05712fe8053420ecf481757e529a7ef2f32fb75c (patch)
treecd1cbaa914027861c058a4f967bd51f0634e9893 /tests/async
parent24babdedf135a85569251b47c03a294623016fc8 (diff)
parent8802688e9f13891b7f81b2d5cad401bc47cf52be (diff)
downloadNim-05712fe8053420ecf481757e529a7ef2f32fb75c.tar.gz
Merge pull request #1173 from EXetoC/pfuture-nested-type-param
Fix #1171.
Diffstat (limited to 'tests/async')
-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()