镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Preserve array-to-span conversion when precompiling queries - #39665

Open
Shivansh-Gaur2 wants to merge 2 commits into
dotnet:mainfrom
Shivansh-Gaur2:issue-39541
Open

Shivansh-Gaur2 wants to merge 2 commits into
dotnet:mainfrom
Shivansh-Gaur2:issue-39541

Conversation

@Shivansh-Gaur2

Copy link
Copy Markdown
Contributor

Addresses the array case in #39541. When C# binds an array receiver to a ReadOnlySpan extension parameter, reconstruct the implicit conversion before building the call. The existing query rewrite can then recognize the conversion.

The regression test reproduced the argument type mismatch before the change. All 93 CSharpToLinqTranslatorTest cases passed after it. The separate collection placeholder failure remains open.

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.

1 participant