diff options
author | Eugene Burmako <xeno.by@gmail.com> | 2012-10-03 18:49:34 +0200 |
---|---|---|
committer | Eugene Burmako <xeno.by@gmail.com> | 2012-10-03 20:03:46 +0200 |
commit | 1acb1664f3c5203968ed989fc8531dbc8e534e05 (patch) | |
tree | 639b9e75577f8cb6106a59f8714f40f9db411f1b /test/files/run | |
parent | cd847070254a2c6055e543c65ec82ea8429ee757 (diff) | |
download | scala-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')
-rw-r--r-- | test/files/run/manifests-undeprecated-in-2.10.0.flags | 1 | ||||
-rw-r--r-- | test/files/run/manifests-undeprecated-in-2.10.0.scala | 15 |
2 files changed, 16 insertions, 0 deletions
diff --git a/test/files/run/manifests-undeprecated-in-2.10.0.flags b/test/files/run/manifests-undeprecated-in-2.10.0.flags new file mode 100644 index 0000000000..e8fb65d50c --- /dev/null +++ b/test/files/run/manifests-undeprecated-in-2.10.0.flags @@ -0,0 +1 @@ +-Xfatal-warnings
\ No newline at end of file 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 |