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

@ -0,0 +1,10 @@
discard """
cmd: '''nim c --hints:off $file'''
errormsg: "undeclared field: 'bar'"
nimout: '''undeclared_routime4.nim(10, 10) Error: undeclared field: 'bar'
'''
"""
type Foo = object
var a = Foo()
let a = a.bar