Skip to content

Infinite loop in parser when enum followed by invalid code #2494

@smarter

Description

@smarter

If you try running the following:

enum 
object

You'll get an infinite loop around enumCaseStats in the parser, this is very similar to the issue that #2270 fixed for the REPL.

I'm not sure what the correct fix is here, but I'll note that other while loops in the parser check an exitOnError flag, I assume that this is to avoid this sort of things.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions