fixes #8671; show helpful msg (lookup symbol, eg iterator) on 'attempting to call undeclared routine' error (#8786)

This commit is contained in:
Timothee Cour 2018-10-13 16:16:04 -07:00 • committed by Andreas Rumpf
commit eb946f37a7
10 changed files with 98 additions and 10 deletions

View file

@ -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