Actions
Bug #21712
openPrism and parse.y inconsistency in command call with block and `.()`
Bug #21712:
Prism and parse.y inconsistency in command call with block and `.()`
Status:
Open
Assignee:
-
Target version:
-
ruby -v:
ruby 4.0.0dev (2025-11-26T06:41:42Z master 43ed35de6c) +YJIT +MN +PRISM [arm64-darwin24]
Description
a b do end.() a b do end&.() are parsed differently.
Prism: parse success, parse.y: SyntaxError
I personally like Prism's behavior: .() and &.() are accepted where .f() and &.f() are accepted.
No data to display
Actions