summary refs log tree commit diff stats
path: root/tests/errmsgs/t5167_2.nim
blob: 17d96ef471e5366da9e1136734de23db6f2770d0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
discard """
cmd: "nim c --threads:on $file"
errormsg: "'threadFunc' doesn't have a concrete type, due to unspecified generic parameters."
line: 11
"""

proc threadFunc[T]() {.thread.} =
  let x = 0

var thr: Thread[void]
thr.createThread(threadFunc)