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 =
23
23
// Just for convenience
24
24
module Internal = TaskSeqInternal
25
25
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
28
32
29
33
static member singleton ( value : 'T ) = Internal.singleton value
30
34
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ module TaskSeqExtensions =
11
11
/// Initialize an empty task sequence.
12
12
val empty < 'T > : taskSeq < 'T >
13
13
14
- [<Sealed>]
14
+ [<Sealed; AbstractClass >]
15
15
type TaskSeq =
16
16
17
17
/// <summary>
You can’t perform that action at this time.
0 commit comments