summary refs log blame commit diff stats
path: root/tests/parallel/t7535.nim
blob: 7817a1c9e9157548646695ca3cc5f072a2744d06 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
           
                               
                                                                               







                                     
discard """
  matrix: "--mm:refc; --mm:orc"
  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)