diff options
author | Philipp Haller <hallerp@gmail.com> | 2008-02-01 16:40:55 +0000 |
---|---|---|
committer | Philipp Haller <hallerp@gmail.com> | 2008-02-01 16:40:55 +0000 |
commit | 1bb174dd34747868dd49184a9e2ef93d9ba274e4 (patch) | |
tree | 495c3af5efd3a6a0b74156b8194e0d453baeb6dc /test/files | |
parent | 3272a4bfb30240e0d83befe1cfed0a0fd2584edd (diff) | |
download | scala-1bb174dd34747868dd49184a9e2ef93d9ba274e4.tar.gz scala-1bb174dd34747868dd49184a9e2ef93d9ba274e4.tar.bz2 scala-1bb174dd34747868dd49184a9e2ef93d9ba274e4.zip |
Removed unchecked warning from 'withIndex'
Diffstat (limited to 'test/files')
-rw-r--r-- | test/files/run/withIndex.check | 2 | ||||
-rw-r--r-- | test/files/run/withIndex.scala | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/test/files/run/withIndex.check b/test/files/run/withIndex.check index e8060bb1d7..6a9c7aaadb 100644 --- a/test/files/run/withIndex.check +++ b/test/files/run/withIndex.check @@ -1,5 +1,3 @@ -warning: there were unchecked warnings; re-run with -unchecked for details -one warning found List((a,0), (b,1), (c,2)) List((a,0), (b,1), (c,2)) List((a,0), (b,1), (c,2)) diff --git a/test/files/run/withIndex.scala b/test/files/run/withIndex.scala index d06dde89f0..6d470878d9 100644 --- a/test/files/run/withIndex.scala +++ b/test/files/run/withIndex.scala @@ -11,7 +11,7 @@ object Test { Console.println(str.zipWithIndex.toList) assert { ary.zipWithIndex match { - case _: Array[Pair[String,Int]] => true + case _: Array[Pair[_,_]] => true case _ => false } } |