Skip to content

Disallow equals and hashCode in universal traits #629

Closed
@smarter

Description

@smarter

equals and hashCode should always be synthesised in value classes so that new Meter(3) == new Meter(4) can be rewritten as 3 == 4, so allowing equals and hashCode in universal traits doesn't make much sense.

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