Skip to content

Number followed by identifier should be a parse error #99

@raffopazzo

Description

@raffopazzo

The following is currently accepted because 0 gets parsed as a separate token from int32_t. It would be less surprising if it instead was rejected.

func f(0i32_t x) -> i32_t { return 0; }

It might also be worth reviewing if the same happens with other kinds of tokens.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions