Skip to content

Warning for if-else expressions with differing presence of trailing expressions #63

@thinker227

Description

@thinker227

Add a warning for code like this

let x = if a {
    b; // warning: else branch has a trailing expression while if branch doesn't
} else {
    c
};

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