Skip to content

fix(check): a call missing arguments says so (#1632) - #2008

Merged
nicolas-abril merged 1 commit into
mainfrom
ai/1632-missing-args
Nov 2, 2026
Merged

nicolas-abril merged 1 commit into
mainfrom
ai/1632-missing-args

Conversation

@nicolas-abril

@nicolas-abril nicolas-abril commented Nov 2, 2026 •

Copy link
Copy Markdown
Collaborator

Proposal 6 of #1632, in a smaller form than #1736.

The observed type already names what's missing, but it's easy to misread if you don't know that @b:U32 -> U32 means you still owe a b. This says so, and leaves out #1736's count of arguments given and taken:

SOME PROOFS FAIL
Error:
- expected : U32
- observed : @b:U32 -> U32
Location: main
 8 | def main() -> U32:
 9>|   add2(1)
   |   ^^^^^^^
10 | 
Note: this call is missing arguments.

Touches the same throw as #2007; this PR is rebased on it and combines the two notes in one nte.

Gates on the three PRs combined, on origin/main 3ca3df32: repo 54/54, test 1819/1819, perf 124/124. Ping fails 80/81 on the BendHub LICENSE check, the same as unchanged main on this machine.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@nicolas-abril
nicolas-abril merged commit db64cf7 into main Nov 2, 2026
1 check passed
@nicolas-abril
nicolas-abril deleted the ai/1632-missing-args branch November 2, 2026 14:58
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.

2 participants