Skip to content

Generator syntax incorrectly parses extra code vs Julia 1.6 parser #428

@mkitti

Description

@mkitti

Julia 1.10.2:

julia> (x for x in 1:5 6)
6

Julia 1.6

julia> (x for x in 1:5 5)
ERROR: syntax: expected ")"

I originally discovered this error in 1.10.2 by trying to run the following and thinking that Julia may have gotten too smart.

julia> (x for x in in 1:5)
1:5

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions