-
Notifications
You must be signed in to change notification settings - Fork 521
Fix fields named 'read' #2525
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
base: master
Are you sure you want to change the base?
Fix fields named 'read' #2525
Conversation
Makes sense. What do you think @jdetter? |
ff983f9
to
92eeb08
Compare
I don't super care about @kazimuth @joshua-spacetime does that sound good? |
@kazimuth Does this actually not have any API/ABI breaking changes? This doesn't require a C# SDK change? |
Add header comment CSharpier More comments
Needs to be rebased once #2710 is merged, that's higher priority |
Description of Changes
Fixes https://github.com/orgs/clockworklabs/projects/22?pane=issue&itemId=102392974&issue=clockworklabs%7Ccom.clockworklabs.spacetimedbsdk%7C276
by renaming
internal
static
serializer fields so that they do not overlap with user-provided names.Note, however, that some field names still will not work:
ReadFields
,WriteFields
,Equals
, andGetHashCode
.This would require a separate fix since the error would happen in a different place. In this case we would need to change the name of the generated member to something like
ReadFields_
orEquals_
, which I'm not sure is a good idea.API and ABI breaking changes
N/A
Expected complexity level and risk
0
Testing
SDK tests and
dotnet-verify
tests are passing.