File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
src/FSharp.Control.TaskSeq Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -23,8 +23,12 @@ module TaskSeqExtensions =
2323// Just for convenience
2424module Internal = TaskSeqInternal
2525
26- [<Sealed>]
27- type TaskSeq =
26+ [<Sealed; AbstractClass>]
27+ type TaskSeq private () =
28+ // Rules for static classes, see bug report: https://github.com/dotnet/fsharp/issues/8093
29+ // F# does not need this internally, but C# does
30+ // 'Abstract & Sealed': makes it a static class in C#
31+ // the 'private ()' ensure that a constructor is emitted, which is required by IL
2832
2933 static member singleton ( value : 'T ) = Internal.singleton value
3034
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ module TaskSeqExtensions =
1111 /// Initialize an empty task sequence.
1212 val empty < 'T > : taskSeq < 'T >
1313
14- [<Sealed>]
14+ [<Sealed; AbstractClass >]
1515type TaskSeq =
1616
1717 /// <summary>
You can’t perform that action at this time.
0 commit comments