Skip to content

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

@pkoenig10

Description

@pkoenig10

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions