Skip to content

Fix () -> (void) being rejected as SyntaxError#2884

Open
ksss wants to merge 1 commit intoruby:masterfrom
ksss:fix-void-in-paren
Open

Fix () -> (void) being rejected as SyntaxError#2884
ksss wants to merge 1 commit intoruby:masterfrom
ksss:fix-void-in-paren

Conversation

@ksss
Copy link
Collaborator

@ksss ksss commented Mar 17, 2026

void_allowed was hardcoded to false when parsing a parenthesized type, causing (void) to be rejected even in return type positions where void is valid.

`void_allowed` was hardcoded to `false` when parsing a parenthesized
type, causing `(void)` to be rejected even in return type positions
where `void` is valid.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant