Repository navigation
fix(check): a self-call that doesn't shrink shows what it received (#1632) - #2006
Merged
Merged
Conversation
Lorenzobattistela
approved these changes
Nov 2, 2026
…1632) Co-Authored-By: Claude Opus 5.5 <[email protected]>
nicolas-abril
force-pushed
the
ai/1632-self-call
branch
from
November 2, 2026 14:46
370db0b to
d81eb84
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.
Proposal 4 of #1632, in a smaller form than #1734.
#1734 named one argument as "not smaller", which was wrong for the repro: after
case 1n+p:the column is1n+p, soloop(1n+p, b)passes every argument as received. This doesn't pick an argument. It prints the call as received next to the call as written, and the reader sees why it fails:Other shapes from the regenerated tests:
sw(S{p}, b)againstsw(b, S{p}),down(64n)againstdown(65n),fold(n)againstfold(ndiv(n, 2n)).bend2/bend.ts: 3 lines at infer-ref's self-call check, +72 ttok (45,150 → 45222 / 48k). prototype #1632.4: name the argument that doesn't shrink #1734 adds about 450.a call smaller than loopagainstloop(a). A bit bare, but still true.def_insthas the same message but no columns to show.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