summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorflywind <43030857+xflywind@users.noreply.github.com>2021-01-12 05:10:22 -0600
committerGitHub <noreply@github.com>2021-01-12 12:10:22 +0100
commit736b0d13c04dadffd29eb56cbd8f34a7b7eff5af (patch)
tree8842206f5c2130889b3c39c19ef2781a84b0c233 /tests
parentcf6dd57efeb3f4dba21102b75fd91c5a84224eaf (diff)
downloadNim-736b0d13c04dadffd29eb56cbd8f34a7b7eff5af.tar.gz
close #10734 add testcase (#16692)
* close #10734 add testcase

* fix

* fix
Diffstat (limited to 'tests')
-rw-r--r--tests/errmsgs/t10734.nim19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/errmsgs/t10734.nim b/tests/errmsgs/t10734.nim
new file mode 100644
index 000000000..32ee5415e
--- /dev/null
+++ b/tests/errmsgs/t10734.nim
@@ -0,0 +1,19 @@
+discard """
+  cmd: "nim check $file"
+  errormsg: ""
+  nimout: '''
+t10734.nim(18, 1) Error: invalid indentation
+t10734.nim(18, 6) Error: invalid indentation
+t10734.nim(19, 7) Error: expression expected, but found '[EOF]'
+t10734.nim(17, 5) Error: 'proc' is not a concrete type; for a callback without parameters use 'proc()'
+t10734.nim(18, 6) Error: undeclared identifier: 'p'
+t10734.nim(18, 6) Error: 'p' cannot be assigned to
+t10734.nim(16, 3) Hint: 'T' is declared but not used [XDeclaredButNotUsed]
+'''
+"""
+
+type
+  T = object
+    a:
+proc p =
+  case
\ No newline at end of file