-
-
Notifications
You must be signed in to change notification settings - Fork 95
feat: impprove type inference for some collection assertions #3481
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: impprove type inference for some collection assertions #3481
Conversation
|
Claude finished @thomhurst's task —— View job Code Review Complete ✅SummaryThis PR improves type inference for collection assertions by removing redundant Changes ReviewedPrimary Changes
Impact
Supporting Changes
Code Quality Assessment✅ Strengths
✅ Technical Implementation
Security & Performance Considerations✅ Security
✅ Performance
Test Coverage✅ Testing
Adherence to Repository Guidelines✅ TUnit Guidelines Met
Recommendations✅ Approved ChangesThis PR successfully improves the API design without breaking functionality. The changes align well with the framework's architecture and improve developer experience through better type inference. Minor Observations
ConclusionRecommendation: ✅ APPROVE This is a well-executed refactoring that improves API consistency and type inference without breaking changes. The implementation follows repository guidelines and maintains all existing functionality while reducing API surface complexity. |
tigran-sargsyan-w
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great improvement to collection assertion type inference — the diff is small and targeted. ✅
A couple of quick nits before merge:
PR title typo: “impprove” → “improve.”
PR description: please add a brief note on what inference changed and confirm there’s no public API change (PublicAPI snapshots only show deletions from verification files).
Tests: consider adding/pointing to a test that covers a non-trivial IEnumerable (e.g., custom iterables) to demonstrate the improved inference; I see a tiny update under tools/speed-comparison/UnifiedTests/AssertionTests.cs, but an assertion focused test would help future regressions.
Looks good overall! 🎯
No description provided.