Skip to content

Warning for block/if-else expressions with trailing expressions used as expression statements #64

@thinker227

Description

@thinker227

Add a warning for code like this

{
    print("uwu");
    1 // warning: value of block expression is not used
}

if x {
    print("owo");
    2 // warning: value of if expression is not used
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions