summary refs log tree commit diff stats
path: root/tests/errmsgs/t5167_2.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/errmsgs/t5167_2.nim')
-rw-r--r--tests/errmsgs/t5167_2.nim12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/errmsgs/t5167_2.nim b/tests/errmsgs/t5167_2.nim
new file mode 100644
index 000000000..17d96ef47
--- /dev/null
+++ b/tests/errmsgs/t5167_2.nim
@@ -0,0 +1,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)
+