diff options
-rw-r--r-- | src/library/scala/runtime/ScalaRunTime.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library/scala/runtime/ScalaRunTime.scala b/src/library/scala/runtime/ScalaRunTime.scala index 8f1acb8381..78298a16e6 100644 --- a/src/library/scala/runtime/ScalaRunTime.scala +++ b/src/library/scala/runtime/ScalaRunTime.scala @@ -68,7 +68,7 @@ object ScalaRunTime { caseFields(x).mkString(x.productPrefix + "(", ",", ")") def _hashCode(x: Product): Int = { - var code = x.getClass().getName().hashCode() + var code = x.productPrefix.hashCode() val arr = x.productArity var i = 0 while (i < arr) { |