mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
cmd/v: fix run
This commit is contained in:
@@ -117,7 +117,7 @@ fn (p mut Parser) fn_decl() ast.FnDecl {
|
||||
p.error('function names cannot contain uppercase letters, use snake_case instead')
|
||||
}
|
||||
if is_method && p.table.get_type_symbol(rec_type).has_method(name) {
|
||||
p.warn('duplicate method `$name`')
|
||||
p.error('duplicate method `$name`')
|
||||
}
|
||||
}
|
||||
if p.tok.kind in [.plus, .minus, .mul, .div, .mod] {
|
||||
|
Reference in New Issue
Block a user