Skip to content

Commit

Permalink
Update first-class Span speclet to consider only structs (#8321)
Browse files Browse the repository at this point in the history
* Update first-class Span speclet to consider only structs

* Require `ref struct`
  • Loading branch information
jjonescz authored Aug 2, 2024
1 parent 235356d commit cf67a0f
Showing 1 changed file with 1 addition and 1 deletion.
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 `ref 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

0 comments on commit cf67a0f

Please # to comment.