Issue #22124 has been updated by nagachika (Tomoyuki Chikanaga). Backport changed from 3.3: REQUIRED, 3.4: REQUIRED, 4.0: DONE to 3.3: REQUIRED, 3.4: DONE, 4.0: DONE ruby_3_4 commit:f065974c220082e6491a042ba3d768251219dcda merged revision(s) commit:d8444812f42162567502877ff3665105a960eb60. ---------------------------------------- Bug #22124: void value missed in parse.y https://bugs.ruby-lang.org/issues/22124#change-118453 * Author: kddnewton (Kevin Newton) * Status: Closed * Backport: 3.3: REQUIRED, 3.4: DONE, 4.0: DONE ---------------------------------------- ``` $ 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/