mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
fix
This commit is contained in:
parent
6a17895eea
commit
e407862bfd
1 changed files with 1 additions and 1 deletions
|
@ -815,7 +815,7 @@ fn (mut c Checker) builtin_args(mut node ast.CallExpr, fn_name string, func &ast
|
|||
if !(node.language != .js && node.args[0].expr is ast.CallExpr) {
|
||||
node.args[0].typ = c.expr(mut node.args[0].expr)
|
||||
}
|
||||
mut arg := node.args[0]
|
||||
arg := node.args[0]
|
||||
c.check_expr_option_or_result_call(arg.expr, arg.typ)
|
||||
if arg.typ.is_void() {
|
||||
c.error('`${fn_name}` can not print void expressions', node.pos)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue