Fixes #2584
Better compiler errors for accessing undeclared fields, calling undeclared procedures and procedure fields.
This commit is contained in:
parent
ccb9ae2d52
commit
22f6017ab8
7 changed files with 22 additions and 10 deletions
|
|
@ -1,16 +1,16 @@
|
|||
discard """
|
||||
file: "topaque.nim"
|
||||
line: 16
|
||||
errormsg: "undeclared identifier: \'buffer\'"
|
||||
errormsg: "undeclared field: \'buffer\'"
|
||||
"""
|
||||
# Test the new opaque types
|
||||
|
||||
import
|
||||
import
|
||||
mopaque
|
||||
|
||||
|
||||
var
|
||||
L: TLexer
|
||||
|
||||
|
||||
L.filename = "ha"
|
||||
L.line = 34
|
||||
L.buffer[0] = '\0' #ERROR_MSG undeclared field: 'buffer'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue