mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-30 01:44:37 +00:00
17 lines
362 B
Nim
17 lines
362 B
Nim
discard """
|
|
file: "tasynctry2.nim"
|
|
errormsg: "\'yield\' cannot be used within \'try\' in a non-inlined iterator"
|
|
line: 15
|
|
"""
|
|
import asyncdispatch
|
|
|
|
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
|