summaryrefslogtreecommitdiff
path: root/test/files/pos/bug927.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/pos/bug927.scala')
-rw-r--r--test/files/pos/bug927.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/files/pos/bug927.scala b/test/files/pos/bug927.scala
index 7d4c59d94c..c903f19867 100644
--- a/test/files/pos/bug927.scala
+++ b/test/files/pos/bug927.scala
@@ -5,7 +5,7 @@ object Test {
case Stream.Empty => 0
case Stream.cons(hd, tl) => hd + sum(tl)
}
- val str: Stream[Int] = Stream.fromIterator(List(1,2,3).iterator)
+ val str: Stream[Int] = List(1,2,3).iterator.toStream
assert(sum(str) == 6)
}