fixes #4856
This commit is contained in:
parent
a12f503b47
commit
bae3baf9cc
3 changed files with 17 additions and 2 deletions
14
tests/async/tgenericasync.nim
Normal file
14
tests/async/tgenericasync.nim
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
discard """
|
||||
output: '''123
|
||||
abc'''
|
||||
"""
|
||||
|
||||
# bug #4856
|
||||
|
||||
import asyncdispatch
|
||||
|
||||
proc say[T](t: T): Future[void] {.async.} =
|
||||
echo $t
|
||||
|
||||
waitFor(say(123))
|
||||
waitFor(say("abc"))
|
||||
Loading…
Add table
Add a link
Reference in a new issue