mirror of
https://github.com/vlang/v.git
synced 2025-09-15 23:42:28 +03:00
disable the snake_case const warning for now
This commit is contained in:
parent
a76165828b
commit
208f17a73a
2 changed files with 5 additions and 5 deletions
|
@ -518,9 +518,9 @@ fn (p mut Parser) const_decl() {
|
|||
continue
|
||||
}
|
||||
mut name := p.check_name() // `Age = 20`
|
||||
if !p.pref.building_v && p.mod != 'os' && contains_capital(name) {
|
||||
p.warn('const names cannot contain uppercase letters, use snake_case instead')
|
||||
}
|
||||
//if !p.pref.building_v && p.mod != 'os' && contains_capital(name) {
|
||||
//p.warn('const names cannot contain uppercase letters, use snake_case instead')
|
||||
//}
|
||||
name = p.prepend_mod(name)
|
||||
mut typ := ''
|
||||
if p.is_vh {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue