diff options
author | Paul Phillips <paulp@improving.org> | 2009-09-01 22:05:38 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2009-09-01 22:05:38 +0000 |
commit | 729ae785e9a06da1c0c9bfb6d4b5a00865059dab (patch) | |
tree | c7f1fd0cc4c0756fd258f6684dfb2b7752d9cee0 /test/files/run | |
parent | 3eb22b8eb1db6a73c8afc05f80dcb33d3c46ee15 (diff) | |
download | scala-729ae785e9a06da1c0c9bfb6d4b5a00865059dab.tar.gz scala-729ae785e9a06da1c0c9bfb6d4b5a00865059dab.tar.bz2 scala-729ae785e9a06da1c0c9bfb6d4b5a00865059dab.zip |
Moved test case for now-fixed #2027 into files.
Diffstat (limited to 'test/files/run')
-rw-r--r-- | test/files/run/t2027.check | 1 | ||||
-rw-r--r-- | test/files/run/t2027.scala | 6 |
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 + } +} |