summaryrefslogtreecommitdiff
path: root/test/files/run/manifests-undeprecated-in-2.10.0.scala
diff options
context:
space:
mode:
authorEugene Burmako <xeno.by@gmail.com>2012-10-03 18:49:34 +0200
committerEugene Burmako <xeno.by@gmail.com>2012-10-03 20:03:46 +0200
commit1acb1664f3c5203968ed989fc8531dbc8e534e05 (patch)
tree639b9e75577f8cb6106a59f8714f40f9db411f1b /test/files/run/manifests-undeprecated-in-2.10.0.scala
parentcd847070254a2c6055e543c65ec82ea8429ee757 (diff)
downloadscala-1acb1664f3c5203968ed989fc8531dbc8e534e05.tar.gz
scala-1acb1664f3c5203968ed989fc8531dbc8e534e05.tar.bz2
scala-1acb1664f3c5203968ed989fc8531dbc8e534e05.zip
undeprecates manifests for 2.10.0
Since scala-reflect.jar is going to be declared experimental for 2.10.0, it doesn't make sense to deprecate manifests in favor of type tags. Class manifests, however, ARE deprecated for class tags, because class tags don't require scala-reflect.jar and are generated independently of type tags.
Diffstat (limited to 'test/files/run/manifests-undeprecated-in-2.10.0.scala')
-rw-r--r--test/files/run/manifests-undeprecated-in-2.10.0.scala15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/files/run/manifests-undeprecated-in-2.10.0.scala b/test/files/run/manifests-undeprecated-in-2.10.0.scala
new file mode 100644
index 0000000000..82e90b3a89
--- /dev/null
+++ b/test/files/run/manifests-undeprecated-in-2.10.0.scala
@@ -0,0 +1,15 @@
+object Test extends App {
+ def m1a: scala.reflect.Manifest[Int] = scala.reflect.Manifest.Int
+ def m2a: scala.reflect.OptManifest[Int] = ???
+ def m3a = scala.reflect.NoManifest
+
+ def m1b: Manifest[Int] = Manifest.Int
+ def m2b: OptManifest[Int] = ???
+ def m3b = NoManifest
+
+ val m4a = manifest[Int]
+ val m5a = optManifest[Int]
+
+ val m4b = implicitly[Manifest[Int]]
+ val m5b = implicitly[OptManifest[Int]]
+} \ No newline at end of file