Actions
Bug #22124
closedvoid value missed in parse.y
Bug #22124:
void value missed in parse.y
Description
$ 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.
Actions