Skip to content
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

Add error prone check when accessors are called in record compact constructor #2796

Open
pkoenig10 opened this issue May 7, 2024 · 0 comments

Comments

@pkoenig10
Copy link
Member

When using compact constructors, record fields are not initialized until after the compact constructor has completed. It's very easy for devs to call an accessor in a compact constructor, thinking the field has already been initialized.

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

No branches or pull requests

1 participant