-
Notifications
You must be signed in to change notification settings - Fork 847
Implement ToString on Records (RFC FS-1022) #2430
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
src/fsharp/IlxGen.fs
Outdated
| yield mkILSimpleStorageCtor(None, Some cenv.g.ilg.typ_Object.TypeSpec, ilThisTy, [], reprAccess) | ||
|
|
||
|
|
||
| if (not <| tycon.HasMember cenv.g "ToString" []) then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We generally don't use the backpipe operator in the compiler (except xyz <| (fun a -> ...) now and then)
dsyme
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left one comment but basically this looks spot on
|
@liboz Please test struct records, thanks |
|
Nice ... Thank you |
This extends #1589 to Record types and is an implementation of RFC FS-1022
Still need to fix tests.