Skip to content

fix: correctly handle differing any types in fn invocation#180

Merged
benbellick merged 1 commit intomainfrom
benbellick/fix-parameter-consistency-bug
Dec 12, 2025
Merged

fix: correctly handle differing any types in fn invocation#180
benbellick merged 1 commit intomainfrom
benbellick/fix-parameter-consistency-bug

Conversation

@benbellick
Copy link
Copy Markdown
Member

closes #178

@benbellick benbellick force-pushed the benbellick/fix-parameter-consistency-bug branch from cafb446 to 15a570a Compare December 12, 2025 19:20
@codecov
Copy link
Copy Markdown

codecov Bot commented Dec 12, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 68.79%. Comparing base (940d2ba) to head (15a570a).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #180   +/-   ##
=======================================
  Coverage   68.78%   68.79%           
=======================================
  Files          45       45           
  Lines       10365    10367    +2     
=======================================
+ Hits         7130     7132    +2     
  Misses       2886     2886           
  Partials      349      349           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

err := extensions.ValidateConstrainedAnyTypeConsistency(params, args, nil)
require.Error(t, err, "nested any1 mismatch should fail")
require.Contains(t, err.Error(), "type parameter any1 cannot be both")
})
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Btw, I can see a case for consolidating all of the above tests into a for loop and calling it one test. This is something we could consider in a later PR though.

Copy link
Copy Markdown
Contributor

@kadinrabo kadinrabo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work with the extra tests, looks good to me

Copy link
Copy Markdown
Member

@vbarua vbarua left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix!

@benbellick benbellick merged commit 579861e into main Dec 12, 2025
12 checks passed
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.

overly constrainted anys

3 participants