Skip to content

(yield) produces a NotImplementedError instead of SyntaxError #2049

@slozier

Description

@slozier

The expression (yield) produces a NotImplementedError instead of the expected a SyntaxError: 'yield' outside function. Found this during #2048 while playing with the fuzz parser.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions