Skip to content

C# 9.0 with keyword for F# Record#2

Open
jbtule wants to merge 2 commits intocsharp-8_0-destructfrom
csharp-9_0-with-keyword
Open

C# 9.0 with keyword for F# Record#2
jbtule wants to merge 2 commits intocsharp-8_0-destructfrom
csharp-9_0-with-keyword

Conversation

@jbtule
Copy link
Copy Markdown
Owner

@jbtule jbtule commented Aug 23, 2020

Ultimately unsuccessful in making this happen. Not sure how Roslyn compiler recognizes records. Added <Clone>$ and public setters to a sealed type, which seems like it would be the shape necessary for the C# with keyword. However still wasn't enough. T

Next tried adding more to match the spec of the C# record proposal, not sure if F# inability to code gen CLI private or protected members is preventing the right shape for roslyn to recognize as a record.

@jbtule jbtule changed the base branch from master to csharp-8_0-destruct August 23, 2020 18:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant