summaryrefslogtreecommitdiff
path: root/test/files/run/ctries-new/DumbHash.scala
blob: 8ef325b67c86843d452faa42b84f8fe5abe691bd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
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)
}