diff options
author | Dominik Picheta <dominikpicheta@googlemail.com> | 2014-05-03 22:51:03 +0100 |
---|---|---|
committer | Dominik Picheta <dominikpicheta@googlemail.com> | 2014-05-03 22:51:03 +0100 |
commit | 05712fe8053420ecf481757e529a7ef2f32fb75c (patch) | |
tree | cd1cbaa914027861c058a4f967bd51f0634e9893 /tests/async | |
parent | 24babdedf135a85569251b47c03a294623016fc8 (diff) | |
parent | 8802688e9f13891b7f81b2d5cad401bc47cf52be (diff) | |
download | Nim-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.nim | 8 |
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() |