-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Open
Labels
F#Support of F# languageSupport of F# languageP2Priority of the issue for triage purpose: Needs to be fixed at some point.Priority of the issue for triage purpose: Needs to be fixed at some point.needs-further-triage
Milestone
Description
This used to work before but now I cannot use CreateFromEnumerable in F# now.
In F#, we define mutable classes by annotating F# 'record' types with CLIMutable:
[<CLIMutable>]
type D =
{
Data : float[]
}F# compiler generates IL that looks as follows:
public class D [ interface list ]
{
internal Data@ = Double[];
public Double[] Data
{
get
{
return Data@;
}
set
{
Data@ = value;
}
}
[ more methods including a default constructor ]
}The SchemaDefinition.Create method picks up both "Data@" and "Data" as fields required by the schema. It should only pickup the public fields.
Please add unit tests for F# as well so these issues are caught earlier.
Szer
Metadata
Metadata
Assignees
Labels
F#Support of F# languageSupport of F# languageP2Priority of the issue for triage purpose: Needs to be fixed at some point.Priority of the issue for triage purpose: Needs to be fixed at some point.needs-further-triage