Strengthen imported-effect WRONG_ARITY diagnostic test - #462
Closed
onatozmenn with Copilot wants to merge 1 commit into
Closed
Strengthen imported-effect WRONG_ARITY diagnostic test#462onatozmenn with Copilot wants to merge 1 commit into
onatozmenn with Copilot wants to merge 1 commit into
Conversation
Copilot
AI
changed the title
[WIP] Update test for imported effect operation wrong arity
Strengthen imported-effect WRONG_ARITY diagnostic test
Jul 29, 2026
onatozmenn
marked this pull request as ready for review
July 29, 2026 20:50
onatozmenn
force-pushed
the
copilot/update-imported-effect-test-arity
branch
from
July 29, 2026 20:58
c50ab22 to
8d35010
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this changes
The imported-effect wrong-arity test only validated
WRONG_ARITY, so message regressions could slip through. This PR hardens that single test to also validate rendered diagnostic wording for arity/argument information.an_imported_effect_operation_called_with_the_wrong_arity_is_an_errorincrates/deed-typeck/tests/checking.rs.Why this way
What it still does not do
Checks
cargo fmt --checkcargo clippy --workspace --all-targets -- -D warningscargo test --workspacecargo run -p deed-cli -- check examples/andtest examples/, if this touches the compilerdesign/updated in this PR, if this changes behaviour one ofthem describes. A design that lags the code is worse than no design.
guard test that only passes values the guard accepts proves nothing, and that is how
the worst bug here went unnoticed.
AI assistance: prepared with GitHub Copilot Coding Agent.
Original prompt