diff options
author | EXetoC <exetoc@gmail.com> | 2014-05-03 23:32:14 +0200 |
---|---|---|
committer | EXetoC <exetoc@gmail.com> | 2014-05-03 23:32:14 +0200 |
commit | 8802688e9f13891b7f81b2d5cad401bc47cf52be (patch) | |
tree | 289489fda3a2c82a68cfcca9d35edfbb1b2c0e48 /tests | |
parent | a21289f5d5ac51bf0459f512eb566af8819a722c (diff) | |
download | Nim-8802688e9f13891b7f81b2d5cad401bc47cf52be.tar.gz |
Fix #1171.
Diffstat (limited to 'tests')
-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() |