diff options
author | Paul Phillips <paulp@improving.org> | 2010-03-02 19:44:01 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2010-03-02 19:44:01 +0000 |
commit | 2a04d577874fa2a4a447a6caef8076e3ba98b32d (patch) | |
tree | 6428793b78e99cbc35305deae8158083dc2620ec /build.xml | |
parent | dc9bb2630601b49d5cee326566854b96a61b412b (diff) | |
download | scala-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 'build.xml')
0 files changed, 0 insertions, 0 deletions