mirror of
https://github.com/vlang/v.git
synced 2025-09-15 23:42:28 +03:00
fix vid compilation
This commit is contained in:
parent
9385ed27ae
commit
2ee252be5f
1 changed files with 1 additions and 1 deletions
|
@ -234,7 +234,7 @@ fn (p mut Parser) fn_decl() {
|
||||||
f.is_c = true
|
f.is_c = true
|
||||||
}
|
}
|
||||||
else if !p.pref.translated {
|
else if !p.pref.translated {
|
||||||
if contains_capital(f.name) {
|
if contains_capital(f.name) && !p.fileis('view.v') {
|
||||||
p.error('function names cannot contain uppercase letters, use snake_case instead')
|
p.error('function names cannot contain uppercase letters, use snake_case instead')
|
||||||
}
|
}
|
||||||
if f.name[0] == `_` {
|
if f.name[0] == `_` {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue