Skip to content

Remove unreachable grouping check in EnumerableRewriter - #138196

Draft
eiriktsarpalis wants to merge 3 commits into
mainfrom
copilot/fix-dead-code-check
Draft

eiriktsarpalis wants to merge 3 commits into
mainfrom
copilot/fix-dead-code-check

Conversation

@eiriktsarpalis

@eiriktsarpalis eiriktsarpalis commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

EnumerableRewriter.GetPublicType compares implemented interfaces against an open generic definition, so its IGrouping<,> branch is unreachable.

  • Cleanup: Remove the dead branch while preserving current overload-selection behavior.
  • Coverage: Add public-API tests for grouping query execution.

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
15 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

Copilot AI linked an issue Nov 24, 2026 that may be closed by this pull request
@github-actions github-actions Bot added the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label Nov 24, 2026
eiriktsarpalis and others added 2 commits November 24, 2026 08:55
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
@eiriktsarpalis eiriktsarpalis changed the title [WIP] Fix dead code check in EnumerableRewriter.GetPublicType Remove unreachable grouping check in EnumerableRewriter Nov 24, 2026
@github-actions github-actions Bot added area-System.Linq and removed needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners labels Nov 24, 2026
@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Tagging subscribers to this area: @dotnet/area-system-linq
See info in area-owners.md if you want to be subscribed.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

EnumerableRewriter.GetPublicType IGrouping<,> check is dead code

2 participants