This commit is contained in:
Andreas Rumpf 2016-10-20 15:20:27 +02:00
commit bae3baf9cc
3 changed files with 17 additions and 2 deletions

View 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"))