Skip to content

chore: improve application type mismatch error message#8264

Merged
TwoFX merged 1 commit intomasterfrom
marcmarkus/application-type-mismatch
May 8, 2025
Merged

chore: improve application type mismatch error message#8264
TwoFX merged 1 commit intomasterfrom
marcmarkus/application-type-mismatch

Conversation

@TwoFX
Copy link
Copy Markdown
Member

@TwoFX TwoFX commented May 8, 2025

This PR rewords the application type mismatch error message by more specifically mentioning that the problem is with the final argument. This is useful when the same argument is passed to the function multiple times.

We decided against using a wording which specifically mentions the "function expression", because users who are not used to currying might not think of the f a in f a b as a function.

@TwoFX TwoFX added the changelog-language Language features and metaprograms label May 8, 2025
@github-actions github-actions bot added the toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN label May 8, 2025
ghost pushed a commit to leanprover-community/batteries that referenced this pull request May 8, 2025
ghost pushed a commit to leanprover-community/mathlib4 that referenced this pull request May 8, 2025
@ghost ghost added the breaks-mathlib This is not necessarily a blocker for merging: but there needs to be a plan label May 8, 2025
@ghost
Copy link
Copy Markdown

ghost commented May 8, 2025

Mathlib CI status (docs):

@ghost ghost added builds-mathlib CI has verified that Mathlib builds against this PR and removed breaks-mathlib This is not necessarily a blocker for merging: but there needs to be a plan labels May 8, 2025
@TwoFX TwoFX added this pull request to the merge queue May 8, 2025
Merged via the queue into master with commit 1db53b3 May 8, 2025
31 checks passed
@TwoFX TwoFX deleted the marcmarkus/application-type-mismatch branch August 4, 2025 07:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

builds-mathlib CI has verified that Mathlib builds against this PR changelog-language Language features and metaprograms toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant