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.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/files/pos/bug927.scala b/test/files/pos/bug927.scala
index 6ab932e23b..1a906cd9bc 100644
--- a/test/files/pos/bug927.scala
+++ b/test/files/pos/bug927.scala
@@ -1,11 +1,11 @@
object Test {
- def sum(stream: Stream[int]): int =
+ def sum(stream: Stream[Int]): Int =
stream match {
case Stream.empty => 0
case Stream.cons(hd, tl) => hd + sum(tl)
}
- val str: Stream[int] = Stream.fromIterator(List(1,2,3).elements)
+ val str: Stream[Int] = Stream.fromIterator(List(1,2,3).elements)
assert(sum(str) == 6)
}