Actions
Bug #21184
closedSyntaxError when combining `in` with inline hash-rocket (`=>`)
Bug #21184:
SyntaxError when combining `in` with inline hash-rocket (`=>`)
Status:
Rejected
Assignee:
-
Target version:
-
ruby -v:
ruby 3.4.2 (2025-02-15 revision d2930f8e7a) +PRISM [x86_64-linux]
Updated by alanwu (Alan Wu) over 1 year ago
- Status changed from Open to Rejected
It's working as documented
Note that only symbol keys are supported for hash patterns.
By the way, the third line that uses in uses a wildcard pattern so is essentially assigning to pattern:
Updated by jtannas (Joel Tannas) over 1 year ago
Thank you for the prompt reply Alan.
Sorry I missed that line while skimming through that document prior to submitting.
I think I need to do some more reading up on the => operator.
Actions