Skip to content

Add error or warning if returns(bool) missing in property_... #711

@iirekm

Description

@iirekm
try this.withdrawAll() {
} catch Error(string memory reason) {
    assert(false);
}

I know that I can use property_... mode to test withdrawAll, however the behavior above is not how other tools (e.g. forge test) works, and can be reason of confusion and even serious bugs if somebody misses it.

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