From e4d88a5be55749a6a3146a35cc9f675963fd07f9 Mon Sep 17 00:00:00 2001 From: yuyi Date: Sat, 3 Jul 2021 00:45:12 +0800 Subject: [PATCH] v.checker: minor cleanup of fn_call() (#10632) --- vlib/v/checker/checker.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vlib/v/checker/checker.v b/vlib/v/checker/checker.v index 21664a8117..2e45b5d2b5 100644 --- a/vlib/v/checker/checker.v +++ b/vlib/v/checker/checker.v @@ -2498,7 +2498,7 @@ pub fn (mut c Checker) fn_call(mut call_expr ast.CallExpr) ast.Type { c.expected_type = ast.string_type call_expr.args[0].typ = c.expr(call_expr.args[0].expr) arg := call_expr.args[0] - _ := c.check_expr_opt_call(arg.expr, arg.typ) + c.check_expr_opt_call(arg.expr, arg.typ) if arg.typ.is_void() { c.error('`$fn_name` can not print void expressions', call_expr.pos) } else if arg.typ == ast.char_type && arg.typ.nr_muls() == 0 {