cecilifier icon indicating copy to clipboard operation
cecilifier copied to clipboard

Assigning instance of `inline array` to `Span<T>` does not generate `PrivateImplementationDetails` type.

Open adrianoc opened this issue 9 months ago • 0 comments

var f = new Foo();
Consume(f.Buffer);
                                   
void Consume(System.Span<int> span) {}
                                   
[System.Runtime.CompilerServices.InlineArray(10)]
public struct IntBuffer
{
    private int _element0;
}
                                   
class Foo
{
   public IntBuffer Buffer;
}

adrianoc avatar Feb 07 '25 03:02 adrianoc