summary refs log tree commit diff stats
path: root/tests/errmsgs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/errmsgs')
-rw-r--r--tests/errmsgs/tcannot_capture_builtin.nim8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/errmsgs/tcannot_capture_builtin.nim b/tests/errmsgs/tcannot_capture_builtin.nim
new file mode 100644
index 000000000..3b8aae241
--- /dev/null
+++ b/tests/errmsgs/tcannot_capture_builtin.nim
@@ -0,0 +1,8 @@
+discard """
+errormsg: "'+' cannot be passed to a procvar"
+line: 8
+"""
+
+# bug #2050
+
+let v: proc (a, b: int): int = `+`
a> 93 94 95