From cc5e79c9ec9cea8d0f22020b528877d8f6e00153 Mon Sep 17 00:00:00 2001 From: Gilles Dubochet Date: Wed, 27 May 2009 19:35:02 +0000 Subject: In "Iterable" and in all its subclasses, "itera... In "Iterable" and in all its subclasses, "iterator" replaces "elements" (and assorted changes). --- test/files/run/unapply.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/files/run/unapply.scala') diff --git a/test/files/run/unapply.scala b/test/files/run/unapply.scala index f540b2a2a9..fa50790a18 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).elements) + val str: Stream[int] = Stream.fromIterator(List(1,2,3).iterator) assertEquals(sum(str), 6) } } -- cgit v1.2.3