disable the snake_case const warning for now
parent
a76165828b
commit
208f17a73a
|
@ -518,9 +518,9 @@ fn (p mut Parser) const_decl() {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
mut name := p.check_name() // `Age = 20`
|
mut name := p.check_name() // `Age = 20`
|
||||||
if !p.pref.building_v && p.mod != 'os' && contains_capital(name) {
|
//if !p.pref.building_v && p.mod != 'os' && contains_capital(name) {
|
||||||
p.warn('const names cannot contain uppercase letters, use snake_case instead')
|
//p.warn('const names cannot contain uppercase letters, use snake_case instead')
|
||||||
}
|
//}
|
||||||
name = p.prepend_mod(name)
|
name = p.prepend_mod(name)
|
||||||
mut typ := ''
|
mut typ := ''
|
||||||
if p.is_vh {
|
if p.is_vh {
|
||||||
|
|
|
@ -10,9 +10,9 @@ import (
|
||||||
|
|
||||||
fn test_import() {
|
fn test_import() {
|
||||||
assert os.SUCCESS == os.SUCCESS &&
|
assert os.SUCCESS == os.SUCCESS &&
|
||||||
t.MonthDays[0] == t.MonthDays[0] &&
|
t.month_days[0] == t.month_days[0] &&
|
||||||
s2.Size == s2.Size &&
|
s2.Size == s2.Size &&
|
||||||
math.Pi == math.Pi &&
|
math.pi == math.pi &&
|
||||||
l.INFO == l.INFO &&
|
l.INFO == l.INFO &&
|
||||||
s5.Size == s5.Size
|
s5.Size == s5.Size
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue