diff options
Diffstat (limited to 'tests/async/t21893.nim')
-rw-r--r-- | tests/async/t21893.nim | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/async/t21893.nim b/tests/async/t21893.nim new file mode 100644 index 000000000..658cb02eb --- /dev/null +++ b/tests/async/t21893.nim @@ -0,0 +1,13 @@ +discard """ +output: "@[97]\ntrue" +""" + +import asyncdispatch + +proc test(): Future[bool] {.async.} = + const S4 = @[byte('a')] + echo S4 + return true + +echo waitFor test() + |