Skip to content

Commit

Permalink
Update DefaultAugmentationAttribute (dotnet#17502)
Browse files Browse the repository at this point in the history
* Update DefaultAugmentationAttribute

* readme
  • Loading branch information
KevinRansom authored Aug 7, 2024
1 parent 60f667f commit 15b5a6c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/release-notes/.FSharp.Core/9.0.100.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
### Changed
* Change compiler default setting realsig+ when building assemblies ([Issue #17384](https://github.com/dotnet/fsharp/issues/17384), [PR #17378](https://github.com/dotnet/fsharp/pull/17385))
* Change compiler default setting for compressedMetadata ([Issue #17379](https://github.com/dotnet/fsharp/issues/17379), [PR #17383](https://github.com/dotnet/fsharp/pull/17383))

* Struct UnionCase doesn't seem to be a valid target for the DefaultAugmentationAttribute ([Issue #17499](https://github.com/dotnet/fsharp/issues/17499), [PR #17502](https://github.com/dotnet/fsharp/pull/17502))
### Breaking Changes

4 changes: 2 additions & 2 deletions src/FSharp.Core/prim-types.fs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ namespace Microsoft.FSharp.Core
type VolatileFieldAttribute() =
inherit Attribute()

[<AttributeUsage (AttributeTargets.Class, AllowMultiple=false)>]
[<AttributeUsage (AttributeTargets.Class ||| AttributeTargets.Struct, AllowMultiple=false)>]
[<Sealed>]
type DefaultAugmentationAttribute(value:bool) =
inherit Attribute()
Expand All @@ -106,7 +106,7 @@ namespace Microsoft.FSharp.Core
type CLIMutableAttribute() =
inherit Attribute()

[<AttributeUsage (AttributeTargets.Class ||| AttributeTargets.Struct , AllowMultiple=false)>]
[<AttributeUsage (AttributeTargets.Class ||| AttributeTargets.Struct, AllowMultiple=false)>]
[<Sealed>]
type AutoSerializableAttribute(value:bool) =
inherit Attribute()
Expand Down
2 changes: 1 addition & 1 deletion src/FSharp.Core/prim-types.fsi
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ namespace Microsoft.FSharp.Core
/// and accessor members for the generated CLI class for that type.</summary>
///
/// <category>Attributes</category>
[<AttributeUsage (AttributeTargets.Class,AllowMultiple=false)>]
[<AttributeUsage (AttributeTargets.Class ||| AttributeTargets.Struct,AllowMultiple=false)>]
[<Sealed>]
type DefaultAugmentationAttribute =
inherit Attribute
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -778,6 +778,7 @@ type Foo =
let foo = [Baz 42; Bat; Batman]
printf "%A" foo"""
|> withLangVersionPreview
|> asExe
|> compile
|> shouldSucceed
Expand Down

0 comments on commit 15b5a6c

Please sign in to comment.