parser: fix const check

pull/8292/head
Alexander Medvednikov 2021-01-23 10:45:58 +01:00
parent 5ee3fecf60
commit ba2a15c9d7
1 changed files with 1 additions and 1 deletions

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)