From 729ae785e9a06da1c0c9bfb6d4b5a00865059dab Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Tue, 1 Sep 2009 22:05:38 +0000 Subject: Moved test case for now-fixed #2027 into files. --- test/files/run/t2027.check | 1 + test/files/run/t2027.scala | 6 ++++++ 2 files changed, 7 insertions(+) create mode 100644 test/files/run/t2027.check create mode 100644 test/files/run/t2027.scala (limited to 'test/files/run') 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 + } +} -- cgit v1.2.3