diff options
Diffstat (limited to 'test/files/run/colltest.scala')
-rw-r--r-- | test/files/run/colltest.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/files/run/colltest.scala b/test/files/run/colltest.scala index 5809812838..b6577006f4 100644 --- a/test/files/run/colltest.scala +++ b/test/files/run/colltest.scala @@ -25,7 +25,7 @@ class TestSet(s0: Set[Int], s1: Set[Int]) { case 7 => "size" } def checkSubSet(pre: String, s0: Set[Int], s1: Set[Int]) { - for (e <- s0.elements) + for (e <- s0.iterator) if (!(s1 contains e)) { assert(false, pre+" element: "+e+"\n S0 = "+s0+"\n S1 = "+s1) } |