We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 03f0b9b commit 53f4302Copy full SHA for 53f4302
tests/FSharp.SystemTextJson.Tests/Test.Regression.fs
@@ -113,10 +113,14 @@ let ``regression #154`` () =
113
|> ignore
114
115
type X = { X: X }
116
+type UY = UY of int * int
117
+type Y = { Y: UY }
118
119
[<Fact>]
120
let ``regression #172`` () =
121
let x = { X = Unchecked.defaultof<_> }
122
+ let y = { Y = Unchecked.defaultof<_> }
123
let options = JsonSerializerOptions()
124
options.Converters.Add(JsonFSharpConverter())
125
Assert.Equal("{\"X\":null}", JsonSerializer.Serialize(x, options))
126
+ Assert.Equal("{\"Y\":null}", JsonSerializer.Serialize(y, options))
0 commit comments