fixes #8671; show helpful msg (lookup symbol, eg iterator) on 'attempting to call undeclared routine' error (#8786)
This commit is contained in:
parent
8232bd04f9
commit
eb946f37a7
10 changed files with 98 additions and 10 deletions
9
tests/errmsgs/undeclared_routime5.nim
Normal file
9
tests/errmsgs/undeclared_routime5.nim
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
discard """
|
||||
cmd: '''nim c --hints:off $file'''
|
||||
errormsg: "undeclared identifier: 'myfun'"
|
||||
nimout: '''undeclared_routime5.nim(9, 9) Error: undeclared identifier: 'myfun'
|
||||
'''
|
||||
"""
|
||||
|
||||
|
||||
let a = myfun(1)
|
||||
Loading…
Add table
Add a link
Reference in a new issue