summary refs log tree commit diff stats
path: root/tests/misc
diff options
context:
space:
mode:
authorTimothee Cour <timothee.cour2@gmail.com>2018-10-13 16:16:04 -0700
committerAndreas Rumpf <rumpf_a@web.de>2018-10-14 01:16:04 +0200
commiteb946f37a7c56fb64703357a67ed098ac8dfd936 (patch)
tree87c87454fad5a77a13b8db7d05a37222bdb030ec /tests/misc
parent8232bd04f9edc4b3accb114c9bd6e60190b68396 (diff)
downloadNim-eb946f37a7c56fb64703357a67ed098ac8dfd936.tar.gz
fixes #8671; show helpful msg (lookup symbol, eg iterator) on 'attempting to call undeclared routine' error (#8786)
Diffstat (limited to 'tests/misc')
-rw-r--r--tests/misc/tissue710.nim2
-rw-r--r--tests/misc/tnoop.nim7
2 files changed, 5 insertions, 4 deletions
diff --git a/tests/misc/tissue710.nim b/tests/misc/tissue710.nim
index 3b6d3e5f3..e2cca0024 100644
--- a/tests/misc/tissue710.nim
+++ b/tests/misc/tissue710.nim
@@ -1,7 +1,7 @@
 discard """
   file: "tissue710.nim"
   line: 8
-  errorMsg: "attempting to call undeclared routine: '||'"
+  errorMsg: "attempting to call routine: '||'"
 """
 var sum = 0
 for x in 3..1000:
diff --git a/tests/misc/tnoop.nim b/tests/misc/tnoop.nim
index 1e3fbe6cf..e1e25b44e 100644
--- a/tests/misc/tnoop.nim
+++ b/tests/misc/tnoop.nim
@@ -1,10 +1,11 @@
 discard """
+  nimout: '''
+  found 'a' of kind 'var''''
   file: "tnoop.nim"
-  line: 11
-  errormsg: "attempting to call undeclared routine: 'a'"
+  line: 12
+  errormsg: "attempting to call routine: 'a'"
 """
 
-
 var
   a: int