aboutsummaryrefslogtreecommitdiff
path: root/tests/run/t3645.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run/t3645.scala')
-rw-r--r--tests/run/t3645.scala6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/run/t3645.scala b/tests/run/t3645.scala
new file mode 100644
index 000000000..cada14cd1
--- /dev/null
+++ b/tests/run/t3645.scala
@@ -0,0 +1,6 @@
+object Test {
+ def main(args: Array[String]): Unit = {
+ val s = Stream.tabulate(5)(x => x+2)
+ assert( s.toList == List(2,3,4,5,6) )
+ }
+}