Skip to content

[BUG] trailing comma is not allowed on assert statements #1118

@DyXel

Description

@DyXel

Describe the bug
Title. An assert should behave just like a function call.

main: () = {
    foo(a, b,); // works
    assert(true, "some_potentially_long_string",); // doesn't work
}

Output:

test.cpp2...
test.cpp2(3,48): error: expected ')' at the end of the contract (at ',')

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