diff options
author | Yuriy Glukhov <yuriy.glukhov@gmail.com> | 2018-05-04 15:23:47 +0300 |
---|---|---|
committer | Yuriy Glukhov <yuriy.glukhov@gmail.com> | 2018-05-09 22:25:28 +0300 |
commit | ce634909281ffc8efbc7d192f557ffe38f49e740 (patch) | |
tree | 6d8ce63c9009e299262586774ddabbaa875b4b89 /tests/async | |
parent | 0ed6c3e476e421827d081e9ab0d9fcb0d3de5eb2 (diff) | |
download | Nim-ce634909281ffc8efbc7d192f557ffe38f49e740.tar.gz |
Yield in try
Diffstat (limited to 'tests/async')
-rw-r--r-- | tests/async/tasynctry2.nim | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/async/tasynctry2.nim b/tests/async/tasynctry2.nim index 444a058be..f82b6cfe0 100644 --- a/tests/async/tasynctry2.nim +++ b/tests/async/tasynctry2.nim @@ -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.} = |