summaryrefslogtreecommitdiff
path: root/src/library/scala/runtime/ScalaRunTime.scala
diff options
context:
space:
mode:
Diffstat (limited to 'src/library/scala/runtime/ScalaRunTime.scala')
-rw-r--r--src/library/scala/runtime/ScalaRunTime.scala3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/library/scala/runtime/ScalaRunTime.scala b/src/library/scala/runtime/ScalaRunTime.scala
index c53e690ee0..54cd51bddf 100644
--- a/src/library/scala/runtime/ScalaRunTime.scala
+++ b/src/library/scala/runtime/ScalaRunTime.scala
@@ -71,6 +71,7 @@ object ScalaRunTime {
def _toString(x: Product): String =
caseFields(x).mkString(x.productPrefix + "(", ",", ")")
+ // todo: use productArity, productElement
def _hashCode(x: Product): Int = {
var code = x.getClass().hashCode()
val arr = x.arity
@@ -82,6 +83,7 @@ object ScalaRunTime {
code
}
+ // todo: use productArity, productElement
def _equals(x: Product, y: Any): Boolean = y match {
case y1: Product if x.arity == y1.arity =>
val arity = x.arity
@@ -93,6 +95,7 @@ object ScalaRunTime {
false
}
+ // todo: use productArity, productElement
def _equalsWithVarArgs(x: Product, y: Any): Boolean = y match {
case y1: Product if x.arity == y1.arity =>
val arity = x.arity