Skip to content

Should parse x = def f = p 1 #3473

Open
@qnighy

Description

@qnighy

Found during investigation of ruby#21153, Prism cannot parse this:

% ./miniruby --parser=parse.y -e "x = def f = p 1"
% ./miniruby --parser=prism -e "x = def f = p 1"
-e: -e:1: syntax error found (SyntaxError)
> 1 | x = def f = p 1
    |               ^ unexpected integer, expecting end-of-input

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions