Files
Nim/tests/parallel/t7535.nim
2021-04-24 18:33:29 +01:00

12 lines
245 B
Nim

discard """
matrix: "--threads:on"
errormsg: "'spawn' takes a call expression; got: proc (x: uint32) = echo [x]"
"""
import threadpool
# bug #7535
proc print_parallel_nok(r: uint32) =
for x in 0..r:
spawn (proc (x: uint32) = echo x)