1
0
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:
Alexander Medvednikov 2021-01-23 10:45:58 +01:00
parent 5ee3fecf60
commit ba2a15c9d7

View File

@ -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)