[ruby-core:125803] [Ruby Bug#22124] void value missed in parse.y
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/
Issue #22124 has been updated by nobu (Nobuyoshi Nakada). Backport changed from 3.3: UNKNOWN, 3.4: UNKNOWN, 4.0: UNKNOWN to 3.3: REQUIRED, 3.4: REQUIRED, 4.0: REQUIRED Thanks, it looks a very old standing bug. ---------------------------------------- Bug #22124: void value missed in parse.y https://bugs.ruby-lang.org/issues/22124#change-117728 * Author: kddnewton (Kevin Newton) * Status: Open * 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/
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/
Issue #22124 has been updated by k0kubun (Takashi Kokubun). Backport changed from 3.3: REQUIRED, 3.4: REQUIRED, 4.0: REQUIRED to 3.3: REQUIRED, 3.4: REQUIRED, 4.0: DONE ruby_4_0 commit:48ac72683a62a7b6b0b7f1e86700eb8688631d86 merged revision(s) commit:d8444812f42197ea13bd9e7762f4e5403484613e, commit:48ac72683a62a7b6b0b7f1e86700eb8688631d86. ---------------------------------------- Bug #22124: void value missed in parse.y https://bugs.ruby-lang.org/issues/22124#change-117978 * Author: kddnewton (Kevin Newton) * Status: Closed * Backport: 3.3: REQUIRED, 3.4: REQUIRED, 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/
participants (4)
-
k0kubun (Takashi Kokubun) -
kddnewton (Kevin Newton) -
nobu (Nobuyoshi Nakada) -
rwstauner (Randy Stauner)