Skip to content

Commit 02d876c

Browse files
Add EditorBrowsableState.Never to SupportsWhenTEnum
1 parent 688284a commit 02d876c

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/FSharp.Core/prim-types.fs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -393,13 +393,15 @@ namespace Microsoft.FSharp.Core
393393

394394
namespace Microsoft.FSharp.Core.CompilerServices
395395

396+
open System.ComponentModel
396397
open Microsoft.FSharp.Core
397398

398399
/// <summary>
399400
/// A marker type that only compilers that support the <c>when 'T : Enum</c>
400401
/// library-only static optimization constraint will recognize.
401402
/// </summary>
402403
[<Sealed; AbstractClass>]
404+
[<EditorBrowsable(EditorBrowsableState.Never)>]
403405
[<CompilerMessage("This type is for compiler use and should not be used directly", 1204, IsHidden = true)>]
404406
type SupportsWhenTEnum = class end
405407

src/FSharp.Core/prim-types.fsi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -996,13 +996,15 @@ namespace Microsoft.FSharp.Core
996996

997997
namespace Microsoft.FSharp.Core.CompilerServices
998998

999+
open System.ComponentModel
9991000
open Microsoft.FSharp.Core
10001001

10011002
/// <summary>
10021003
/// A marker type that only compilers that support the <c>when 'T : Enum</c>
10031004
/// library-only static optimization constraint will recognize.
10041005
/// </summary>
10051006
[<Sealed; AbstractClass>]
1007+
[<EditorBrowsable(EditorBrowsableState.Never)>]
10061008
[<CompilerMessage("This type is for compiler use and should not be used directly", 1204, IsHidden = true)>]
10071009
type SupportsWhenTEnum = class end
10081010

0 commit comments

Comments
 (0)