1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

v2: handle unresolved consts

This commit is contained in:
Alexander Medvednikov
2020-02-10 18:42:53 +01:00
parent bf5ed5e451
commit d5f90ef64b
5 changed files with 25 additions and 9 deletions

View File

@@ -437,8 +437,12 @@ pub fn (p mut Parser) parse_ident(is_c bool) (ast.Ident,table.Type) {
// Function object (not a call), e.g. `onclick(my_click)`
p.table.find_fn(name) or {
// ident.info = ast.IdentVar
p.error('parse_ident: unknown identifier `$name`')
exit(0)
node = ast.Ident{
kind: .blank_ident
name: name
}
return node,typ
// p.error('parse_ident: unknown identifier `$name`')
}
// p.next()
}