Project

General

Profile

Actions

Bug #22124

closed

void value missed in parse.y

Bug #22124: void value missed in parse.y

Added by kddnewton (Kevin Newton) 3 days ago. Updated 2 days ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:125803]

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

Also available in: PDF Atom