summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/library/scala/reflect/ClassTag.scala3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/library/scala/reflect/ClassTag.scala b/src/library/scala/reflect/ClassTag.scala
index 06960a5478..1e56f2db57 100644
--- a/src/library/scala/reflect/ClassTag.scala
+++ b/src/library/scala/reflect/ClassTag.scala
@@ -123,6 +123,9 @@ object ClassTag {
implicit def toDeprecatedClassManifestApis[T](ctag: ClassTag[T]): DeprecatedClassManifestApis[T] = new DeprecatedClassManifestApis[T](ctag)
+ @deprecated("Use apply instead", "2.10.0")
+ def fromClass[T](clazz: jClass[T]): ClassManifest[T] = apply(clazz)
+
/** Manifest for the singleton type `value.type'. */
@deprecated("Manifests aka type tags now support arbitrary types. Build a manifest directly from the type instead", "2.10.0")
def singleType[T <: AnyRef](value: AnyRef): Manifest[T] = ???