Skip to content

Commit

Permalink
Extend DefaultValueAttribute to use AttributeTargets.Property
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarfgp committed May 22, 2024
1 parent 670972a commit 5131943
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/FSharp.Core/prim-types.fs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ namespace Microsoft.FSharp.Core
inherit Attribute()
member _.Value = value

[<AttributeUsage (AttributeTargets.Field ||| AttributeTargets.Method, AllowMultiple=false)>]
[<AttributeUsage (AttributeTargets.Field ||| AttributeTargets.Method ||| AttributeTargets.Property, AllowMultiple=false)>]
[<Sealed>]
type DefaultValueAttribute(check:bool) =
inherit Attribute()
Expand Down

0 comments on commit 5131943

Please sign in to comment.