mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
parser: fix const check
This commit is contained in:
parent
5ee3fecf60
commit
ba2a15c9d7
@ -1965,7 +1965,7 @@ fn (mut p Parser) const_decl() ast.ConstDecl {
|
||||
pos := p.tok.position()
|
||||
name := p.check_name()
|
||||
if util.contains_capital(name) {
|
||||
p.warn_with_pos('$p.file_name_dir const names cannot contain uppercase letters, use snake_case instead',
|
||||
p.warn_with_pos('const names cannot contain uppercase letters, use snake_case instead',
|
||||
pos)
|
||||
}
|
||||
full_name := p.prepend_mod(name)
|
||||
|
Loading…
Reference in New Issue
Block a user