Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Comments

parser: fix last stmt is fn call in or_expr#25739

Merged
spytheman merged 1 commit intovlang:masterfrom
kbkpbot:parser-fix-last-stmt-fn-call-or-expr
Nov 14, 2025
Merged

parser: fix last stmt is fn call in or_expr#25739
spytheman merged 1 commit intovlang:masterfrom
kbkpbot:parser-fix-last-stmt-fn-call-or-expr

Conversation

@kbkpbot
Copy link
Contributor

@kbkpbot kbkpbot commented Nov 14, 2025

Fix issue #25732

In mark_last_call_return_as_used(), if the expr has a or_expr, we need to check and set the last expr in the or_expr as used.

Copy link
Contributor

@spytheman spytheman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent work.

@spytheman spytheman merged commit e8754af into vlang:master Nov 14, 2025
85 of 86 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants