Skip to content

Unary method call doesn't drop the trailing @ #1084

@Earlopain

Description

@Earlopain

For comparision:

$ ruby-parse --33 -e ":~@"
(sym :~)

$ ruby-parse --33 -e "foo.~@"
(send
  (send nil :foo) :"~@")

The same rules exist here, ruby will actually call the ~ method. Prism gets this wrong right now as well, just opening this to reference the added translation test over there.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions