Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
felipensp committed Sep 22, 2024
1 parent 387da6e commit 286ce13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vlib/v/checker/fn.v
Original file line number Diff line number Diff line change
Expand Up @@ -1090,7 +1090,7 @@ fn (mut c Checker) fn_call(mut node ast.CallExpr, mut continue_check &bool) ast.
} else {
if obj.typ == 0 {
if mut obj.expr is ast.IfGuardExpr {
typ = c.expr(mut obj.expr.expr)
typ = c.expr(mut obj.expr.expr).clear_option_and_result()
} else {
typ = c.expr(mut obj.expr)
}
Expand Down

0 comments on commit 286ce13

Please sign in to comment.