diff options
author | michelou <michelou@epfl.ch> | 2007-12-21 15:13:25 +0000 |
---|---|---|
committer | michelou <michelou@epfl.ch> | 2007-12-21 15:13:25 +0000 |
commit | c9658ac006526cbaa7263ac3fb9d20b9ab6d7c84 (patch) | |
tree | 66e052bc3cbe4da6497fd4e527e8c217aa2e8bc0 /src | |
parent | c6f96a7ef30be23a8d3cda6fcaa0c0563a9373bb (diff) | |
download | scala-c9658ac006526cbaa7263ac3fb9d20b9ab6d7c84.tar.gz scala-c9658ac006526cbaa7263ac3fb9d20b9ab6d7c84.tar.bz2 scala-c9658ac006526cbaa7263ac3fb9d20b9ab6d7c84.zip |
updated RichClass
Diffstat (limited to 'src')
-rw-r--r-- | src/dotnet-library/scala/Predef.scala | 4 | ||||
-rw-r--r-- | src/dotnet-library/scala/runtime/RichClass.scala | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/dotnet-library/scala/Predef.scala b/src/dotnet-library/scala/Predef.scala index 82dfb658f5..fe3e048a88 100644 --- a/src/dotnet-library/scala/Predef.scala +++ b/src/dotnet-library/scala/Predef.scala @@ -171,10 +171,10 @@ object Predef { implicit def exceptionWrapper(exc: Throwable) = new runtime.RichException(exc) final class GetClassWrapper(obj: AnyRef) { - def getClass(): runtime.RichClass[Any] = classWrapper(obj.GetType()) + def getClass(): runtime.RichClass = classWrapper(obj.GetType()) } implicit def getClassWrapper(obj: AnyRef) = new GetClassWrapper(obj) - implicit def classWrapper[A](clazz: Class[A]): runtime.RichClass[A] = + implicit def classWrapper(clazz: Class[_]): runtime.RichClass = new runtime.RichClass(clazz) implicit def unit2ordered(x: Unit): Ordered[Unit] = new Ordered[Unit] with Proxy { diff --git a/src/dotnet-library/scala/runtime/RichClass.scala b/src/dotnet-library/scala/runtime/RichClass.scala index fc21f537ac..e964a66ab1 100644 --- a/src/dotnet-library/scala/runtime/RichClass.scala +++ b/src/dotnet-library/scala/runtime/RichClass.scala @@ -13,13 +13,13 @@ package scala.runtime import Predef.Class -final class RichClass[A](val self: Class[A]) extends Proxy { +final class RichClass(val self: Class[_]) extends Proxy { def isPrimitive(): Boolean = self.IsPrimitive def isArray(): Boolean = self.IsArray - def getClass(): RichClass[A] = this + def getClass(): RichClass = this def getName(): String = self.Name - def getComponentType(): Class[A] = self.GetElementType + def getComponentType(): Class[_] = self.GetElementType } |