Skip to content

When using matches, or ('||') is parsed as closure ('| |'). #83

@JoPolzin

Description

@JoPolzin

When running verusfmt on the following code:

proof fn foo() {
    assert(a matches b || true)
}

it becomes this:

proof fn foo() {
    assert(a matches b |  | true)
}

I strongly suspect, this is because they are being interpretated as closures, instead of or`s.
Also, i only encounterd this problem, when using matches, so far.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions