summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosh Suereth <Joshua.Suereth@gmail.com>2012-08-06 10:46:15 -0700
committerJosh Suereth <Joshua.Suereth@gmail.com>2012-08-06 10:46:15 -0700
commitcf431effb4e21a2879c7088524e0ed83a31504a5 (patch)
tree7119892136ea71d27085cf22b72d3f5bb23c38dc
parent4389ce5e10a425dd215d3cd474e681b205770bb0 (diff)
parent3cebcd7aebbe5965cefb89655ea1073420b9a0bb (diff)
downloadscala-cf431effb4e21a2879c7088524e0ed83a31504a5.tar.gz
scala-cf431effb4e21a2879c7088524e0ed83a31504a5.tar.bz2
scala-cf431effb4e21a2879c7088524e0ed83a31504a5.zip
Merge pull request #1055 from scalamacros/topic/deprecate-manifest-incantations
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