Skip to content

Incomplete exhaustiveness checking in Gren 0.6.3 #359

@aramiscd

Description

@aramiscd

I have found that Gren 0.6.3 compiles the following function without any objections:

fn r =
    when r is
        { a = False, b = True } -> 1
        { a = True, b = False } -> 2

That surprised me because the following branches are missing:

        { a = False, b = False } -> ...
        { a = True, b = True } -> ...

The exhaustiveness checking does evidently not function as it should. It seems to only affect record patterns, which is plausible because they were added/extended most recently.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions