Uh oh!
There was an error while loading. Please reload this page.
Support consuming IL(C#)-defined generic T with AllowByRefLike anti-constraint - #17597
Conversation
❗ Release notes required
Warning No PR link found in some release notes, please consider adding it.
|
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
vzarytovskii
commented
Aug 29, 2024
Shall we add tests for builders? Classic and resumable? Since a bunch of continuations are getting codegened there as well as inlining and state machines. |
T-Gro
commented
Aug 30, 2024
We don't propagate that generic anti-constraint to F# code, it really is only allowed for an ILCall expression. You mean like a generic builder, where the typar instantion would be e.g. |
T-Gro
commented
Aug 30, 2024
I am thinking of some sensible real-world-like usecase involving a builder. |
Uh oh!
There was an error while loading. Please reload this page.
Mostly this, generic builders are less of a concern, I think.
For example, if we have a collection builder and we define a |
Implements #16800
Follows https://github.com/dotnet/runtime/blob/main/docs/design/features/byreflike-generics.md
Builds upon: https://github.com/fsharp/fslang-design/blob/main/FSharp-4.5/FS-1053-span.md
Deserves a (small) RFC update: fsharp/fslang-design#787