Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proper error message for non exhaustive match #1772

Merged
merged 1 commit into from
Jan 23, 2024

Commits on Jan 23, 2024

  1. Proper error variant for non exhaustive match

    Argument to match expressions that wouldn't match any of the branches
    used to have a pretty bad error message ("expecting Enum, found Enum").
    This commit creates a proper variant for non-matching expressions,
    pointing to the match expression and to the value the argument evaluated
    to.
    
    Currently, one position that might be lost in translation is where the
    match expression was applied. It's a bit harder to track; for now, this
    commit is a trivial change and is a strict improvement over the previous
    situation. Let's reconsider later if this is insufficient.
    yannham committed Jan 23, 2024
    Configuration menu
    Copy the full SHA
    5192d87 View commit details
    Browse the repository at this point in the history