t5167_2.nim 251 B

12345678910111213
  1. discard """
  2. cmd: "nim c --threads:on $file"
  3. errormsg: "'threadFunc' doesn't have a concrete type, due to unspecified generic parameters."
  4. line: 11
  5. """
  6. proc threadFunc[T]() {.thread.} =
  7. let x = 0
  8. var thr: Thread[void]
  9. thr.createThread(threadFunc)