mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-28 17:04:41 +00:00
* stdlib tests now check refc too * typo * fixes line numbers * disable cpp * do not touch
21 lines
381 B
Nim
21 lines
381 B
Nim
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)
|