Skip to content
This repository was archived by the owner on Jun 18, 2026. It is now read-only.

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

Open
carldebilly wants to merge 5 commits into
masterfrom
dev/cdb/bug-error-reporting
Open

Immutable: Removed useless call to .Equals() in .ToImmutable() + misc#82
carldebilly wants to merge 5 commits into
masterfrom
dev/cdb/bug-error-reporting

Conversation

@carldebilly

Copy link
Copy Markdown
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

CLAassistant commented Oct 31, 2019

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

bug Something isn't working immutable-generator

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants