diff options
author | Grzegorz Kossakowski <grzegorz.kossakowski@gmail.com> | 2012-01-15 21:41:11 +0100 |
---|---|---|
committer | Grzegorz Kossakowski <grzegorz.kossakowski@gmail.com> | 2012-01-15 21:41:11 +0100 |
commit | cebc49b9f37ec8c8a3befcee6142f9c0590c41e2 (patch) | |
tree | 9a907b27ccf8efc7c119a5f8ef6f9d4ad3de0fc1 | |
parent | ac11155b3fae83e7977b58514ea10ca2a0c46a84 (diff) | |
download | scala-cebc49b9f37ec8c8a3befcee6142f9c0590c41e2.tar.gz scala-cebc49b9f37ec8c8a3befcee6142f9c0590c41e2.tar.bz2 scala-cebc49b9f37ec8c8a3befcee6142f9c0590c41e2.zip |
Make AnyValManifest not a sealed class.
Scala+GWT has a whole new hierarchy of Manifests that
does not use reflection. Every type in new hierarchy
is a subtype of a type from old hierarchy. Sealed modifier
introduced in 2e92de4cd66532404081eec6b9e82c6f85b51434
breaks this scheme. Removing it so Scala+GWT can compile again.
-rw-r--r-- | src/library/scala/reflect/Manifest.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library/scala/reflect/Manifest.scala b/src/library/scala/reflect/Manifest.scala index be08409636..8bd45c0e33 100644 --- a/src/library/scala/reflect/Manifest.scala +++ b/src/library/scala/reflect/Manifest.scala @@ -60,7 +60,7 @@ trait Manifest[T] extends ClassManifest[T] with Equals { override def hashCode = this.erasure.## } -sealed abstract class AnyValManifest[T <: AnyVal](override val toString: String) extends Manifest[T] with Equals { +abstract class AnyValManifest[T <: AnyVal](override val toString: String) extends Manifest[T] with Equals { override def <:<(that: ClassManifest[_]): Boolean = (that eq this) || (that eq Manifest.Any) || (that eq Manifest.AnyVal) override def canEqual(other: Any) = other match { |