summary refs log tree commit diff stats
path: root/tests/parallel/t7535.nim
blob: 052dcdc3a592d151b519222ec0ddeee4f7c19a98 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
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)