Skip to content

Difference in semantics of case classes with Scala 2 #2020

Closed
@nicolasstucki

Description

@nicolasstucki
case class Foo(a: Int)(b: Int)

In Scala2, the Foo get equals and hashCode based on only a (parameters in first ()). In Dotty, the methods use on a and b.

Is this intended? Is this specified?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions