summary refs log tree commit diff stats
path: root/tests/ccgbugs/twrong_string_asgn.nim
blob: 669b7f8f506ceb1e9520ac55f013a8aba35c0726 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
discard """
  output: "adf"
"""

import asyncdispatch
const
  test = ["adf"]

proc foo() {.async.} =
  for i in test:
    echo(i)

var finished = false
let x = foo()
x.callback =
  proc () =
    finished = true

while not finished: poll()