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/iterables.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/files/run/iterables.scala') diff --git a/test/files/run/iterables.scala b/test/files/run/iterables.scala index 5fb587a323..5334b456ff 100644 --- a/test/files/run/iterables.scala +++ b/test/files/run/iterables.scala @@ -1,7 +1,7 @@ object Test extends Application { class Test(n: Int) extends Iterable[Int] { private var i = 0 - def elements = new Iterator[Int] { + def iterator = new Iterator[Int] { def hasNext = i < n def next = if (hasNext) { val v = i; i += 1; v } -- cgit v1.2.3