Omit upcasts where possible (#178)

This commit is contained in:
Patrick Stevens
2024-07-01 17:45:36 +01:00
committed by GitHub
parent c590db2a65
commit 434c042510
4 changed files with 126 additions and 11 deletions

View File

@@ -57,3 +57,17 @@ type FirstDu =
| EmptyCase
| Case1 of data : string
| Case2 of record : JsonRecordTypeWithBoth * i : int
[<WoofWare.Myriad.Plugins.JsonParse true>]
[<WoofWare.Myriad.Plugins.JsonSerialize true>]
type HeaderAndValue =
{
Header : string
Value : string
}
[<WoofWare.Myriad.Plugins.JsonSerialize true>]
type Foo =
{
Message : HeaderAndValue option
}