summaryrefslogtreecommitdiff
path: root/test/files/run
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run')
-rw-r--r--test/files/run/t2027.check1
-rw-r--r--test/files/run/t2027.scala6
2 files changed, 7 insertions, 0 deletions
diff --git a/test/files/run/t2027.check b/test/files/run/t2027.check
new file mode 100644
index 0000000000..d00491fd7e
--- /dev/null
+++ b/test/files/run/t2027.check
@@ -0,0 +1 @@
+1
diff --git a/test/files/run/t2027.scala b/test/files/run/t2027.scala
new file mode 100644
index 0000000000..ee9bd3886e
--- /dev/null
+++ b/test/files/run/t2027.scala
@@ -0,0 +1,6 @@
+object Test {
+ def main(args: Array[String]) {
+ def fibs: Stream[Int] = Stream.cons(0, Stream.cons(1, fibs.zip(fibs.tail).map(p => p._1 + p._2)))
+ println(fibs(2)) // stack overflow
+ }
+}