diff --git a/compiler/parser.v b/compiler/parser.v index 0f1e7af697..aa771169ec 100644 --- a/compiler/parser.v +++ b/compiler/parser.v @@ -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 { diff --git a/compiler/tests/module_test.v b/compiler/tests/module_test.v index e568a10daf..97881670bd 100644 --- a/compiler/tests/module_test.v +++ b/compiler/tests/module_test.v @@ -10,9 +10,9 @@ import ( fn test_import() { assert os.SUCCESS == os.SUCCESS && - t.MonthDays[0] == t.MonthDays[0] && + t.month_days[0] == t.month_days[0] && s2.Size == s2.Size && - math.Pi == math.Pi && + math.pi == math.pi && l.INFO == l.INFO && s5.Size == s5.Size }