22 Jun
2026
22 Jun
'26
2:20 p.m.
Issue #22124 has been reported by kddnewton (Kevin Newton). ---------------------------------------- Bug #22124: void value missed in parse.y https://bugs.ruby-lang.org/issues/22124 * Author: kddnewton (Kevin Newton) * Status: Open * Backport: 3.3: UNKNOWN, 3.4: UNKNOWN, 4.0: UNKNOWN ---------------------------------------- ``` $ 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/