diff options
author | flywind <43030857+xflywind@users.noreply.github.com> | 2020-07-14 15:22:48 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-14 09:22:48 +0200 |
commit | 086efac49b746214c8d39347fa2d96f0f85413b2 (patch) | |
tree | 3f669dc637b5e6db5ab7f13f6a3cf5c61f4322de /tests | |
parent | f4f21c89e57115a57ed97e30a9b9fe6c901ae453 (diff) | |
download | Nim-086efac49b746214c8d39347fa2d96f0f85413b2.tar.gz |
fix #6608 (#14963)
* fix #6608
Diffstat (limited to 'tests')
-rw-r--r-- | tests/errmsgs/t6608.nim | 16 |
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() |