summary refs log tree commit diff stats
path: root/tests/errmsgs/t6608.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/errmsgs/t6608.nim')
-rw-r--r--tests/errmsgs/t6608.nim15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/errmsgs/t6608.nim b/tests/errmsgs/t6608.nim
new file mode 100644
index 000000000..88cbf42fd
--- /dev/null
+++ b/tests/errmsgs/t6608.nim
@@ -0,0 +1,15 @@
+discard """
+  cmd: "nim c --hints:off $file"
+  errormsg: "type mismatch: got <>"
+  nimout: '''t6608.nim(13, 4) Error: type mismatch: got <>
+but expected one of:
+AcceptCB = proc (s: string){.closure.}'''
+"""
+
+type
+  AcceptCB = proc (s: string)
+
+proc x(x: AcceptCB) =
+  x()
+
+x()