Better compiler errors for accessing undeclared fields, calling undeclared
procedures and procedure fields.
This commit is contained in:
Dominik Picheta 2015-06-04 13:55:48 +01:00
commit 22f6017ab8
7 changed files with 22 additions and 10 deletions

View file

@ -1,7 +1,7 @@
discard """
file: "tissue710.nim"
line: 8
errorMsg: "undeclared identifier: '||'"
errorMsg: "attempting to call undeclared procedure: '||'"
"""
var sum = 0
for x in 3..1000:

View file

@ -1,7 +1,7 @@
discard """
file: "tnoop.nim"
line: 11
errormsg: "undeclared identifier: 'a'"
errormsg: "attempting to call undeclared procedure: 'a'"
"""