You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When generating a signature file from a type with attributes with arguments, the generated code does not contain any arugments.
Repro steps
namespaceMyApp.TypesopenNewtonsoft.JsontypeSomeTypeName={/// Some Xml doc
FieldOne :string[<JsonProperty(Required=Required.Default)>]
FieldTwo :string list/// Some other Xml doc[<JsonProperty(Required=Required.Default)>]
FieldThree :string}
leads to
namespaceMyApp.TypestypeSomeTypeName={/// Some Xml doc
FieldOne:string[<Newtonsoft.Json.JsonProperty>]
FieldTwo:string list/// Some other Xml doc[<Newtonsoft.Json.JsonProperty>]
FieldThree:string}
Expected behaviour
The generated signature should be considered equivalent to the backing source file.
Actual behaviour
The generated code isn't valid, warning in implementation file:
Known workarounds
Edit signature file by hand.
The text was updated successfully, but these errors were encountered:
I'm seeing something similar in Fable, suddenly FCS doesn't expose the attributes of arguments of FSharpMemberOrFunctionOrValue. Note in my case it's an implementation file and the typed AST.
When generating a signature file from a type with attributes with arguments, the generated code does not contain any arugments.
Repro steps
leads to
Expected behaviour
The generated signature should be considered equivalent to the backing source file.
Actual behaviour
The generated code isn't valid, warning in implementation file:
Known workarounds
Edit signature file by hand.
The text was updated successfully, but these errors were encountered: