summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorflywind <43030857+xflywind@users.noreply.github.com>2020-07-14 15:22:48 +0800
committerGitHub <noreply@github.com>2020-07-14 09:22:48 +0200
commit086efac49b746214c8d39347fa2d96f0f85413b2 (patch)
tree3f669dc637b5e6db5ab7f13f6a3cf5c61f4322de /tests
parentf4f21c89e57115a57ed97e30a9b9fe6c901ae453 (diff)
downloadNim-086efac49b746214c8d39347fa2d96f0f85413b2.tar.gz
fix #6608 (#14963)
* fix #6608
Diffstat (limited to 'tests')
-rw-r--r--tests/errmsgs/t6608.nim16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/errmsgs/t6608.nim b/tests/errmsgs/t6608.nim
new file mode 100644
index 000000000..3d82f3cd8
--- /dev/null
+++ b/tests/errmsgs/t6608.nim
@@ -0,0 +1,16 @@
+discard """
+  cmd: "nim c --hints:off $file"
+  errormsg: "type mismatch: got <>"
+  nimout: '''t6608.nim(14, 4) Error: type mismatch: got <>
+but expected one of:
+AcceptCB = proc (s: string){.closure.}'''
+  line: 14
+"""
+
+type
+  AcceptCB = proc (s: string)
+
+proc x(x: AcceptCB) =
+  x()
+
+x()