Repro steps
Compile this program:
open System.ComponentModel
type A =
{
AField : string
}
type B =
{
[<DefaultValue([||] : A[])>]
BField : A[]
}
This construct is used, for example, by Newtonsoft Json.NET.
Expected behavior
Compiles successfully.
Actual behavior
Internal compiler error:
error FS0192 : internal error : encodeCustomAttrElemType: unrecognized custom element type
Known workarounds
None
Related information
Windows, .NET 6.0
Repro steps
Compile this program:
This construct is used, for example, by Newtonsoft Json.NET.
Expected behavior
Compiles successfully.
Actual behavior
Internal compiler error:
Known workarounds
None
Related information
Windows, .NET 6.0