diff options
author | Josh Suereth <Joshua.Suereth@gmail.com> | 2012-10-05 09:45:26 -0700 |
---|---|---|
committer | Josh Suereth <Joshua.Suereth@gmail.com> | 2012-10-05 09:45:26 -0700 |
commit | bfde8c79cf68541e29e60d22371bcc4669be7b83 (patch) | |
tree | dce26aa1490c1f25db0806d03f40638a45211740 /test/files/run | |
parent | 3c7f269c30fd14fa7f125d09061fa2a9fb28df05 (diff) | |
parent | 1acb1664f3c5203968ed989fc8531dbc8e534e05 (diff) | |
download | scala-bfde8c79cf68541e29e60d22371bcc4669be7b83.tar.gz scala-bfde8c79cf68541e29e60d22371bcc4669be7b83.tar.bz2 scala-bfde8c79cf68541e29e60d22371bcc4669be7b83.zip |
Merge pull request #1455 from scalamacros/topic/manifests
undeprecates manifests for 2.10.0
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 |