summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2010-03-02 19:44:01 +0000
committerPaul Phillips <paulp@improving.org>2010-03-02 19:44:01 +0000
commit2a04d577874fa2a4a447a6caef8076e3ba98b32d (patch)
tree6428793b78e99cbc35305deae8158083dc2620ec /lib
parentdc9bb2630601b49d5cee326566854b96a61b412b (diff)
downloadscala-2a04d577874fa2a4a447a6caef8076e3ba98b32d.tar.gz
scala-2a04d577874fa2a4a447a6caef8076e3ba98b32d.tar.bz2
scala-2a04d577874fa2a4a447a6caef8076e3ba98b32d.zip
Improved equality for Manifests.
canEquals, and has ClassManifests compare according to erasure but full manifests also compare type arguments. Preserving symmetry means that some things you might expect to be equal are not: val m1 = scala.reflect.ClassManifest.fromClass(classOf[List[String]]) val m2 = manifest[List[String]] (m1 == m2) // false However you can always compare the erasures. (m1.erasure == m2.erasure) // true Review by dpp.
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions