Skip to content

[pull] master from ruby:master - #1381

Merged
pull[bot] merged 1 commit into
turkdevops:masterfrom
ruby:master
Sep 5, 2026
Merged

[pull] master from ruby:master#1381
pull[bot] merged 1 commit into
turkdevops:masterfrom
ruby:master

Conversation

@pull

@pull pull Bot commented Sep 5, 2026

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

value_expr_check descended into the left operand of an and/or node,
so a chain such as `x = (return) && (return) && a` reported the same
void value once per operator instead of once. The left operand is
already checked for a value when logop() builds the node, so stop at
the node rather than descending.

This matches the existing test_void_value_in_rhs expectation that the
same warning is emitted just once, and mirrors the same change in
ruby/prism#4221.
@pull pull Bot locked and limited conversation to collaborators Sep 5, 2026
@pull pull Bot added the ⤵️ pull label Sep 5, 2026
@pull
pull Bot merged commit a946c1b into turkdevops:master Sep 5, 2026
0 of 2 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant