Skip to content

Commit

Permalink
revert change
Browse files Browse the repository at this point in the history
  • Loading branch information
felipensp committed Sep 16, 2024
1 parent 6c43774 commit 90bd8ed
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions vlib/v/checker/fn.v
Original file line number Diff line number Diff line change
Expand Up @@ -859,9 +859,8 @@ fn (mut c Checker) fn_call(mut node ast.CallExpr, mut continue_check &bool) ast.
c.error('json.decode: unknown type `${sym.name}`', node.pos)
}
} else {
typ_name := expr.type_name()
c.error('json.decode: first argument needs to be a type, got `${typ_name}`',
node.pos)
typ := expr.type_name()
c.error('json.decode: first argument needs to be a type, got `${typ}`', node.pos)
return ast.void_type
}
c.expected_type = ast.string_type
Expand Down

0 comments on commit 90bd8ed

Please sign in to comment.