summaryrefslogtreecommitdiff
path: root/test/files/run/t2027.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/t2027.scala')
-rw-r--r--test/files/run/t2027.scala6
1 files changed, 6 insertions, 0 deletions
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
+ }
+}