summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Burmako <xeno.by@gmail.com>2012-08-04 19:31:05 +0200
committerEugene Burmako <xeno.by@gmail.com>2012-08-05 21:01:42 +0200
commit3cebcd7aebbe5965cefb89655ea1073420b9a0bb (patch)
treec56ed2a554edaa9cfaea75bf4322968f3c816c5a
parentec4a9fb5251bed30f4d99091d66190c1bd9daa03 (diff)
downloadscala-3cebcd7aebbe5965cefb89655ea1073420b9a0bb.tar.gz
scala-3cebcd7aebbe5965cefb89655ea1073420b9a0bb.tar.bz2
scala-3cebcd7aebbe5965cefb89655ea1073420b9a0bb.zip
adds deprecation annotations on manifest incantations
-rw-r--r--src/library/scala/Predef.scala3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/library/scala/Predef.scala b/src/library/scala/Predef.scala
index 44025d5358..f3d36473dd 100644
--- a/src/library/scala/Predef.scala
+++ b/src/library/scala/Predef.scala
@@ -115,8 +115,11 @@ object Predef extends LowPriorityImplicits {
@deprecated("This notion doesn't have a corresponding concept in 2.10, because scala.reflect.runtime.universe.TypeTag can capture arbitrary types. Use type tags instead of manifests, and there will be no need in opt manifests.", "2.10.0")
val NoManifest = scala.reflect.NoManifest
+ @deprecated("Use scala.reflect.classTag[T] and scala.reflect.runtime.universe.typeTag[T] instead", "2.10.0")
def manifest[T](implicit m: Manifest[T]) = m
+ @deprecated("Use scala.reflect.classTag[T] instead", "2.10.0")
def classManifest[T](implicit m: ClassManifest[T]) = m
+ @deprecated("This notion doesn't have a corresponding concept in 2.10, because scala.reflect.runtime.universe.TypeTag can capture arbitrary types. Use type tags instead of manifests, and there will be no need in opt manifests.", "2.10.0")
def optManifest[T](implicit m: OptManifest[T]) = m
// Minor variations on identity functions