diff options
author | Martin Odersky <odersky@gmail.com> | 2010-03-29 12:53:07 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2010-03-29 12:53:07 +0000 |
commit | 97515089566b5f138d3a5cb73769d54178d210d4 (patch) | |
tree | 547121bced007c255017d36f3cd21966624aaac3 /test/files/neg | |
parent | 83c817f84c7268a1ba729f8e0ef90336906bfc58 (diff) | |
download | scala-97515089566b5f138d3a5cb73769d54178d210d4.tar.gz scala-97515089566b5f138d3a5cb73769d54178d210d4.tar.bz2 scala-97515089566b5f138d3a5cb73769d54178d210d4.zip |
Closes #2386 by requiring class manifests for a...
Closes #2386 by requiring class manifests for an array element type if a
class manifaest for the array type is demanded. Review by dubochet.
Diffstat (limited to 'test/files/neg')
-rw-r--r-- | test/files/neg/t2386.check | 4 | ||||
-rw-r--r-- | test/files/neg/t2386.scala | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/test/files/neg/t2386.check b/test/files/neg/t2386.check new file mode 100644 index 0000000000..2caa46c731 --- /dev/null +++ b/test/files/neg/t2386.check @@ -0,0 +1,4 @@ +t2386.scala:2: error: could not find implicit value for evidence parameter of type scala.reflect.ClassManifest[Array[_ >: java.lang.String with Int]] + val a = Array(Array(1, 2), Array("a","b")) + ^ +one error found diff --git a/test/files/neg/t2386.scala b/test/files/neg/t2386.scala new file mode 100644 index 0000000000..56146cc5c3 --- /dev/null +++ b/test/files/neg/t2386.scala @@ -0,0 +1,3 @@ +object Test { + val a = Array(Array(1, 2), Array("a","b")) +} |