diff options
author | Paul Phillips <paulp@improving.org> | 2012-01-07 13:31:11 -0800 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2012-01-07 13:48:22 -0800 |
commit | 27d19715af59e2e438808ae668c093ad61c8f728 (patch) | |
tree | 7f7d0f313e6bb27a76b7ada76500bb351bee5563 /test/files/run | |
parent | a6ebd0f3ee2610ce1f5c3b2aee269ea8b2cfd6df (diff) | |
download | scala-27d19715af59e2e438808ae668c093ad61c8f728.tar.gz scala-27d19715af59e2e438808ae668c093ad61c8f728.tar.bz2 scala-27d19715af59e2e438808ae668c093ad61c8f728.zip |
Made Array manifests return type arguments.
Closes SI-3758.
Diffstat (limited to 'test/files/run')
-rw-r--r-- | test/files/run/t3758.scala | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/files/run/t3758.scala b/test/files/run/t3758.scala new file mode 100644 index 0000000000..18750b0a9c --- /dev/null +++ b/test/files/run/t3758.scala @@ -0,0 +1,10 @@ +object Test { + def main(args: Array[String]): Unit = { + assert(classManifest[Array[String]].typeArguments contains classManifest[String]) + assert(classManifest[Array[Int]].typeArguments contains classManifest[Int]) + assert(classManifest[Array[Float]].typeArguments contains classManifest[Float]) + assert(manifest[Array[String]].typeArguments contains manifest[String]) + assert(manifest[Array[Int]].typeArguments contains manifest[Int]) + assert(manifest[Array[Float]].typeArguments contains manifest[Float]) + } +} |