1
0
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:
Alexander Medvednikov
2020-04-07 01:09:25 +02:00
parent b7560fe4bf
commit 33644a4f91
2 changed files with 8 additions and 2 deletions

View File

@@ -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] {