blob: 191939100fe41508fad639fe409534617d86910b (
plain) (
tree)
|
|
discard """
matrix: "--mm:refc; --mm:orc"
errormsg: "'spawn'ed function cannot have a 'typed' or 'untyped' parameter"
"""
# bug #10913
import threadpool
proc useParallel*[T](unused: T) =
# use a generic T here to show the problem.
{.push experimental: "parallel".}
parallel:
for i in 0..4:
spawn echo "echo in parallel"
sync()
{.pop.}
useParallel(1)
|