Skip to content

Commit

Permalink
add net9 (#22)
Browse files Browse the repository at this point in the history
Add .net 9 as this enable new compiler checks.
  • Loading branch information
pchalamet authored Dec 29, 2024
1 parent a9545fa commit 26788ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/FSharp.MongoDB.Bson/FSharp.MongoDB.Bson.fsproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netstandard2.1</TargetFramework>
<TargetFrameworks>net9.0;netstandard2.1</TargetFrameworks>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<Nullable>enable</Nullable>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ open MongoDB.Bson.Serialization.Serializers
/// <summary>
/// Serializer for F# maps.
/// </summary>
type FSharpMapSerializer<'KeyType, 'ValueType when 'KeyType : comparison>() =
type FSharpMapSerializer<'KeyType, 'ValueType when 'KeyType : comparison and 'KeyType: not null>() =
inherit SerializerBase<Map<'KeyType, 'ValueType>>()

let serializer = DictionaryInterfaceImplementerSerializer<Dictionary<'KeyType, 'ValueType>>()
Expand Down

0 comments on commit 26788ff

Please sign in to comment.