From cba0cbb892e991a0946270d1a7da63993f248225 Mon Sep 17 00:00:00 2001 From: Eugene Burmako Date: Tue, 26 Jun 2012 11:00:26 +0200 Subject: Improves backward compatibility of manifests 1) type ClassManifest[T] = ClassTag[T] (solves a problem with toArray[T: ClassManifest] defined on most of the collections; if these types weren't aliases, then we won't be able to change the signature of that method to toArray[T: ClassTag], because that would break source compatibility for those who override toArray in their custom collections) 2) Compiler-generated manifests no longer trigger deprecation warnings (this is implemented by using ClassManifestFactory instead of ClassManifest and ManifestFactory instead of Manifest) 3) Deprecation messages got improved to reflect the changes that were introduced in 2.10.0-M4. --- test/files/run/classmanifests_new_core.scala | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 test/files/run/classmanifests_new_core.scala (limited to 'test/files/run/classmanifests_new_core.scala') diff --git a/test/files/run/classmanifests_new_core.scala b/test/files/run/classmanifests_new_core.scala new file mode 100644 index 0000000000..63dbfab25c --- /dev/null +++ b/test/files/run/classmanifests_new_core.scala @@ -0,0 +1,4 @@ +object Test extends App { + println(classManifest[Int]) + println(classManifest[Int] eq Manifest.Int) +} \ No newline at end of file -- cgit v1.2.3