summary refs log tree commit diff stats
path: root/tests/errmsgs/t5167_4.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/errmsgs/t5167_4.nim')
-rw-r--r--tests/errmsgs/t5167_4.nim20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/errmsgs/t5167_4.nim b/tests/errmsgs/t5167_4.nim
new file mode 100644
index 000000000..3d77fae02
--- /dev/null
+++ b/tests/errmsgs/t5167_4.nim
@@ -0,0 +1,20 @@
+discard """
+errormsg: "type mismatch: got (proc [*missing parameters*](x: int) | proc (x: string){.gcsafe, locks: 0.})"
+line: 19
+"""
+
+type
+  TGeneric[T] = object
+    x: int
+
+proc foo[B](x: int) =
+  echo "foo1"
+
+proc foo(x: string) =
+  echo "foo2"
+
+proc bar(x: proc (x: int)) =
+  echo "bar"
+
+bar foo
+