summaryrefslogtreecommitdiff
path: root/test/files/run/hashhash.scala
Commit message (Collapse)AuthorAgeFilesLines
* Added ## method to Any as our scala hashCode me...Paul Phillips2010-02-281-0/+15
Added ## method to Any as our scala hashCode method which provides consistent answers for primitive types. And I'm sure we're all tired of new starrs, but it's hard to add a method to Any without one. This patch only brings ## into existence, but nothing calls it yet. // some true assertions scala> assert(5.5f.## == 5.5f.hashCode) scala> assert(5.0f.## != 5.0f.hashCode && 5.0f.## == 5L.##) No review. (Already reviewed by odersky.)