Regression from first-class spans with overload picking #76443
Labels
Area-Compilers
Feature - First-class Span Types
untriaged
Issues and PRs which have not yet been triaged by a lead
Version Used: 9.0.200.preview
Steps to Reproduce:
MemoryMarshal.Cast
with an arraySpan<T>
overload, but getReadOnlySpan<T>
overloadhttps://sharplab.io/#v2:EYLgtghglgdgNAExAagD4AEBMBGAsAKHQAYACdbAOgCUBXGAFyjAFMKBJB5gJwHsAHAMrcAblADGzAM4BuAgXQBmMphIBhADYRJkggG8CJQ2SXoALCQCyzegAseCABQBKA0f34jnkgh41g65gBtAF0Segh/ZhIAXhIYGnV1AEJZDy9DAT4IGAAeBJ4YAHMAPm8pehjLZjAeLgBPCwguSRsIdQpVLXocnz8AuBJ8ouKHcMinVM8AXwIpoA===
Diagnostic Id:
Expected Behavior:
The
Span<T>
overload is used, as it was on .NET 8 and .NET 9 RC2.Actual Behavior:
The
ReadOnlySpan<T>
overload is used instead.The text was updated successfully, but these errors were encountered: