Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Update first-class Span speclet to consider only structs #8321

Merged
merged 2 commits into from
Aug 2, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion proposals/first-class-span-types.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ An implicit span conversion permits `array_types`, `System.Span<T>`, `System.Rea

------

Any Span/ReadOnlySpan types are considered applicable for the conversion if they match by their fully-qualified name.
Any Span/ReadOnlySpan types are considered applicable for the conversion if they are `struct`s and they match by their fully-qualified name.

We also add _implicit span conversion_ to the list of standard implicit conversions
([§10.4.2](https://github.com/dotnet/csharpstandard/blob/draft-v8/standard/conversions.md#1042-standard-implicit-conversions)). This allows overload resolution to consider
Expand Down