We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When compared for equality, nested case classes with type parameters do not check for their parent object.
Tried on latest Dotty nightly. Scala 2 shows expected behavior
trait T { case class X[A]() } object a extends T object b extends T val ax = a.X() val bx = b.X() println(ax == bx)
The equality check should print false but prints true.
false
true
Deleting the type parameter [A] on the case class shows the correct behavior.
[A]
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
When compared for equality, nested case classes with type parameters do not check for their parent object.
Tried on latest Dotty nightly. Scala 2 shows expected behavior
minimized code
expectation
The equality check should print
false
but printstrue
.Deleting the type parameter
[A]
on the case class shows the correct behavior.The text was updated successfully, but these errors were encountered: