1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

checker: vfmt checker.v

This commit is contained in:
Alexander Medvednikov 2020-09-13 16:21:40 +02:00
parent a160038e1a
commit 68948c7947

View File

@ -1386,9 +1386,8 @@ pub fn (mut c Checker) call_fn(mut call_expr ast.CallExpr) table.Type {
// Passing an int or a string array produces a c error here
// Deleting this condition results in propper V error messages
// if arg_typ_sym.kind == .string && typ_sym.has_method('str') {
// continue
// continue
// }
if typ_sym.kind == .void && arg_typ_sym.kind == .string {
continue
}