twrong_string_asgn.nim 239 B

1234567891011121314151617181920
  1. discard """
  2. output: "adf"
  3. """
  4. import asyncdispatch
  5. const
  6. test = ["adf"]
  7. proc foo() {.async.} =
  8. for i in test:
  9. echo(i)
  10. var finished = false
  11. let x = foo()
  12. x.callback =
  13. proc () =
  14. finished = true
  15. while not finished: poll()