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
productPrefix
scala> abstract case class C1(a: Int) | class C2(a: Int) extends C1(a) { override def productPrefix = "C2" } | class C3(a: Int) extends C1(a) { override def productPrefix = "C3" } scala> val s = collection.mutable.HashSet.empty[C1] scala> s.addOne(new C2(1)) scala> val c3 = new C3(1) scala> s.find(_ == c3) val res1: Option[C1] = Some(C2(1)) scala> s.contains(c3) val res2: Boolean = false
The text was updated successfully, but these errors were encountered:
Alternatively, canEqual is broken and should include productPrefix.
Sorry, something went wrong.
lrytz
Successfully merging a pull request may close this issue.
The text was updated successfully, but these errors were encountered: