Yield in try

This commit is contained in:
Yuriy Glukhov
2018-05-04 15:23:47 +03:00
parent 0ed6c3e476
commit ce63490928
6 changed files with 711 additions and 93 deletions

View File

@@ -1,10 +1,12 @@
discard """
file: "tasynctry2.nim"
errormsg: "\'yield\' cannot be used within \'try\' in a non-inlined iterator"
line: 15
line: 17
"""
import asyncdispatch
{.experimental: "oldIterTransf".}
proc foo(): Future[bool] {.async.} = discard
proc test5(): Future[int] {.async.} =