Skip to content

fix(check): a match missing cases says so, without the internal \{} (#1632) - #2000

Merged
Lorenzobattistela merged 1 commit into
mainfrom
fix-1632-match-cover
Nov 2, 2026
Merged

Lorenzobattistela merged 1 commit into
mainfrom
fix-1632-match-cover

Conversation

@Lorenzobattistela

Copy link
Copy Markdown
Collaborator

Proposal 3 of #1632, in its smallest form: a match that misses constructors no longer prints the internal term \{}.

Before:

- expected : cases for Zero
- observed : \{}

After:

- message  : this match doesn't cover Zero
Note: add the missing cases, or a catch-all case.

One throw in term_check's Efq arm (bend2/bend.ts, +18 ttok: 44,968 / 48k). The 16 tests that expected cases for … are regenerated. This is a smaller take on #1733: it leaves out the per-constructor surface spelling (0n, []) and the note on fielded constructors.

Gates on main 459f225: repo 54/54, test 1815/1815, perf 124/124, ping 81/81.

🤖 Generated with Claude Code

…1632)

The empty-match error printed `expected : cases for Zero` against the
internal term `\{}`. It now reads `message : this match doesn't cover Zero`
with a Note to add the missing cases or a catch-all case.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@Lorenzobattistela
Lorenzobattistela merged commit 60a87ef into main Nov 2, 2026
1 check passed
@Lorenzobattistela
Lorenzobattistela deleted the fix-1632-match-cover branch November 2, 2026 13:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant