mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
checker: do not allow extra () in if conditions
This commit is contained in:
@ -388,7 +388,7 @@ fn (p &Parser) known_fn_in_mod(name string) bool {
|
||||
existing_fn := p.table.find_fn(name) or {
|
||||
return false
|
||||
}
|
||||
if (existing_fn.mod == p.mod || existing_fn.mod == 'builtin') {
|
||||
if existing_fn.mod == p.mod || existing_fn.mod == 'builtin' {
|
||||
return true
|
||||
}
|
||||
return false
|
||||
|
Reference in New Issue
Block a user