Skip to content

UnionBy stub had a wrong parameter type#68

Merged
koenbeuk merged 1 commit into
mainfrom
fix/unionby-stub
Jun 1, 2026
Merged

UnionBy stub had a wrong parameter type#68
koenbeuk merged 1 commit into
mainfrom
fix/unionby-stub

Conversation

@koenbeuk
Copy link
Copy Markdown
Collaborator

@koenbeuk koenbeuk commented Jun 1, 2026

No description provided.

Copilot AI review requested due to automatic review settings June 1, 2026 17:57
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Fixes the UnionBy polyfill/interceptor stub to accept an element sequence (IEnumerable<T>) instead of a key sequence (IEnumerable<TKey>), aligning ExpressiveSharp’s intercepted Queryable.UnionBy surface with the actual LINQ API and restoring correct call-site binding.

Changes:

  • Corrected UnionBy stub overloads in ExpressiveQueryableLinqExtensions to take IEnumerable<T> as the second parameter.
  • Updated generator test input + verified snapshot to reflect the corrected UnionBy interceptor signature.
  • Added integration tests covering UnionBy, ExceptBy, and IntersectBy compilation and runtime behavior through AsExpressive() interception.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
tests/ExpressiveSharp.IntegrationTests/Tests/SetOperationInterceptorTests.cs Adds regression tests ensuring set-operation interceptors compile and run with correct argument types/semantics.
tests/ExpressiveSharp.Generator.Tests/PolyfillInterceptorGenerator/SetOperationTests.UnionBy_GeneratesInterceptor.verified.txt Updates verified output so generated interceptor signature uses IEnumerable<Order> for second.
tests/ExpressiveSharp.Generator.Tests/PolyfillInterceptorGenerator/SetOperationTests.cs Fixes generator test source for UnionBy to pass an element sequence (IEnumerable<Order>).
src/ExpressiveSharp/Extensions/ExpressiveQueryableLinqExtensions.cs Corrects UnionBy stub overload parameter type from IEnumerable<TKey> to IEnumerable<T>.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@koenbeuk koenbeuk merged commit a1d0138 into main Jun 1, 2026
18 checks passed
@koenbeuk koenbeuk deleted the fix/unionby-stub branch June 1, 2026 18:31
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