From: "rwstauner (Randy Stauner) via ruby-core" Date: 2026-06-26T21:16:10+00:00 Subject: [ruby-core:125852] [Ruby Bug#22124] void value missed in parse.y Issue #22124 has been updated by rwstauner (Randy Stauner). Backport PR for ruby_4_0 (4.0) opened: https://github.com/ruby/ruby/pull/17512 ---------------------------------------- Bug #22124: void value missed in parse.y https://bugs.ruby-lang.org/issues/22124#change-117773 * Author: kddnewton (Kevin Newton) * Status: Closed * Backport: 3.3: REQUIRED, 3.4: REQUIRED, 4.0: REQUIRED ---------------------------------------- ``` $ ruby --parser=parse.y -cwe 'x = return a b do end' Syntax OK $ ruby --parser=prism -cwe 'x = return a b do end' ruby: -e:1: syntax error found (SyntaxError) > 1 | x = return a b do end | ^~~~~~~~~~~~~~~~~ unexpected void value expression ``` I think it's likely because of the wrapped block expression. -- https://bugs.ruby-lang.org/ ______________________________________________ ruby-core mailing list -- ruby-core@ml.ruby-lang.org To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/