summaryrefslogtreecommitdiff
path: root/test/files/run/ctries-new/DumbHash.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/ctries-new/DumbHash.scala')
-rw-r--r--test/files/run/ctries-new/DumbHash.scala14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/files/run/ctries-new/DumbHash.scala b/test/files/run/ctries-new/DumbHash.scala
new file mode 100644
index 0000000000..8ef325b67c
--- /dev/null
+++ b/test/files/run/ctries-new/DumbHash.scala
@@ -0,0 +1,14 @@
+
+
+
+
+
+
+class DumbHash(val i: Int) {
+ override def equals(other: Any) = other match {
+ case that: DumbHash => that.i == this.i
+ case _ => false
+ }
+ override def hashCode = i % 5
+ override def toString = "DH(%s)".format(i)
+}