Skip to content
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

Handle span conversions in is operator #75413

Merged

Conversation

jjonescz
Copy link
Member

@jjonescz jjonescz commented Oct 7, 2024

Test plan: #73445

These scenarios previously failed with "unexpected value" exception.

@dotnet-issue-labeler dotnet-issue-labeler bot added the untriaged Issues and PRs which have not yet been triaged by a lead label Oct 7, 2024
@jjonescz jjonescz marked this pull request as ready for review October 7, 2024 13:05
@jjonescz jjonescz requested a review from a team as a code owner October 7, 2024 13:05
@jjonescz jjonescz requested review from 333fred and cston October 7, 2024 13:05
@jjonescz
Copy link
Member Author

jjonescz commented Oct 8, 2024

@cston @333fred for reviews, thanks

}

[Theory, MemberData(nameof(LangVersions))]
public void Conversion_Array_Span_Explicit_SwitchPattern(LanguageVersion langVersion)
Copy link
Member

Choose a reason for hiding this comment

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

Consider also testing string to ReadOnlySpan<char>.

@jjonescz jjonescz requested a review from 333fred October 9, 2024 09:23
@jjonescz jjonescz merged commit 787f479 into dotnet:features/FirstClassSpan Oct 10, 2024
24 checks passed
@jjonescz jjonescz deleted the FirstClassSpan-23-IsOperator branch October 10, 2024 08:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Compilers Feature - First-class Span Types untriaged Issues and PRs which have not yet been triaged by a lead
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants