Skip to content

Support ref structs in generics #16800

Description

@vzarytovskii

.NET 9 will support ref structs in generics as well as new constraint.
A bunch of new APIs will be utilising it, hence it needs to be supported in F#

Runtime support: dotnet/runtime#65112
C#: https://github.com/dotnet/csharplang/blob/main/proposals/ref-struct-interfaces.md

Note: only consuming is in scope, everything else isn't possible right now, due to lack of many ref-related features support in compiler (ref fields, escape analysis as examples).

Metadata

Metadata

Assignees

Type

No type

Projects

Status
New

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions