diff options
author | michelou <michelou@epfl.ch> | 2010-10-23 12:04:19 +0000 |
---|---|---|
committer | michelou <michelou@epfl.ch> | 2010-10-23 12:04:19 +0000 |
commit | 246b590a4a5d7df4b3db2204e84497dbabc5edac (patch) | |
tree | 4b7fed6a2a88883bbb372e7ec169d42865ea6af6 /test/files/run | |
parent | 006fbc37ca3c3b47090c937d7cc5a1c49d005f09 (diff) | |
download | scala-246b590a4a5d7df4b3db2204e84497dbabc5edac.tar.gz scala-246b590a4a5d7df4b3db2204e84497dbabc5edac.tar.bz2 scala-246b590a4a5d7df4b3db2204e84497dbabc5edac.zip |
removed warnings in test files
Diffstat (limited to 'test/files/run')
-rw-r--r-- | test/files/run/t0883.scala | 2 | ||||
-rw-r--r-- | test/files/run/unapply.scala | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/test/files/run/t0883.scala b/test/files/run/t0883.scala index b9d71702d8..c5c1aeaa04 100644 --- a/test/files/run/t0883.scala +++ b/test/files/run/t0883.scala @@ -1,7 +1,7 @@ object Foo { def apply(x: String) = new Foo(x) } class Foo(name: String) case object Bar extends Foo("Bar") -case class Baz extends Foo("Baz") +case class Baz() extends Foo("Baz") object Test extends Application { Foo("Bar") match { case Bar => println("What?") diff --git a/test/files/run/unapply.scala b/test/files/run/unapply.scala index acbce58d35..810616850d 100644 --- a/test/files/run/unapply.scala +++ b/test/files/run/unapply.scala @@ -111,7 +111,7 @@ object StreamFoo extends TestCase("unapply for Streams") with Assert { case Stream.cons(hd, tl) => hd + sum(tl) } override def runTest { - val str: Stream[Int] = Stream.fromIterator(List(1,2,3).iterator) + val str: Stream[Int] = List(1,2,3).toStream assertEquals(sum(str), 6) } } |