Skip to content

Immutable: Removed useless call to .Equals() in .ToImmutable() + misc #82

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

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

carldebilly
Copy link
Member

  • Removed useless call to .Equals() in .ToImmutable(), preventing the creation of an instance when the set fields was ignored in the equality check.
  • .Default is not a readonly property
  • Codegen was crashing when trying to report an error about non-readonly, non-static fields

When a non-readonly, non-static field was used, the codegen was crashing when trying to report this error situation.
This was preventing the creation of an instance when the set fields was ignored in the equality check.
@carldebilly carldebilly force-pushed the dev/cdb/bug-error-reporting branch from 3cff77e to f7ad5f8 Compare October 22, 2018 15:58
Was broken because of a new version of Cake.
Version has been fixed to 3.6.5 for now.
@CLAassistant
Copy link

CLAassistant commented Oct 31, 2019

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working immutable-generator
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants