From 8802688e9f13891b7f81b2d5cad401bc47cf52be Mon Sep 17 00:00:00 2001 From: EXetoC Date: Sat, 3 May 2014 23:32:14 +0200 Subject: Fix #1171. --- tests/async/tnestedpfuturetypeparam.nim | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 tests/async/tnestedpfuturetypeparam.nim (limited to 'tests') 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() -- cgit 1.4.1-2-gfad0