diff options
author | Paul Phillips <paulp@improving.org> | 2010-03-05 19:19:17 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2010-03-05 19:19:17 +0000 |
commit | 0433d8843272b174d0ce0b7eb3c0ed806bc2705a (patch) | |
tree | 043843abf0623505472fb7898fb3ce769d77a572 /test/files/run/t2867.scala | |
parent | 603f715f52462de73481fd79e12c0deec68d269e (diff) | |
download | scala-0433d8843272b174d0ce0b7eb3c0ed806bc2705a.tar.gz scala-0433d8843272b174d0ce0b7eb3c0ed806bc2705a.tar.bz2 scala-0433d8843272b174d0ce0b7eb3c0ed806bc2705a.zip |
ScalaRunTime method to perform sameElements as ...
ScalaRunTime method to perform sameElements as fix for #2867. Review by
odersky.
Diffstat (limited to 'test/files/run/t2867.scala')
-rw-r--r-- | test/files/run/t2867.scala | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/files/run/t2867.scala b/test/files/run/t2867.scala new file mode 100644 index 0000000000..25e55eaecd --- /dev/null +++ b/test/files/run/t2867.scala @@ -0,0 +1,15 @@ +object Test { + case class A(l: List[_]*) + + def main(args: Array[String]): Unit = { + /** Kind of sneaking a slightly different test in here as well as + * testing 2867. How subversive. + */ + val xs1 = List(1, 2, 3) + val xs2 = List(1.0, 2.0, 3.0) + val xs3 = List[Any](1.0f, 2.0f, 3.0f) + val xs4 = List[Byte](1, 2, 3) + + assert(A(List(xs1, xs2)) == A(List(xs3, xs4))) + } +} |