Merge pull request #8009 from yglukhov/remove-oldIterTransf

Removed oldIterTranf feature
This commit is contained in:
Andreas Rumpf 2018-06-11 16:45:35 +02:00 • committed by GitHub
commit 76676cb79f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 4 additions and 109 deletions

View file

@ -1,18 +0,0 @@
discard """
file: "tasynctry2.nim"
errormsg: "\'yield\' cannot be used within \'try\' in a non-inlined iterator"
line: 14
"""
import asyncdispatch
{.experimental: "oldIterTransf".}
proc foo(): Future[bool] {.async.} = discard
proc test5(): Future[int] {.async.} =
try:
discard await foo()
raise newException(ValueError, "Test5")
except:
discard await foo()
result = 0