From a4bdfdcccb498aeec2511f9230647ec27da6ff41 Mon Sep 17 00:00:00 2001 From: Philipp Haller Date: Tue, 16 Jun 2009 08:58:17 +0000 Subject: Added tests for #2027 and #2030. --- test/pending/run/t2027.scala | 7 +++++++ test/pending/run/t2030.check | 1 + test/pending/run/t2030.scala | 7 +++++++ 3 files changed, 15 insertions(+) create mode 100644 test/pending/run/t2027.scala create mode 100644 test/pending/run/t2030.check create mode 100644 test/pending/run/t2030.scala (limited to 'test/pending') diff --git a/test/pending/run/t2027.scala b/test/pending/run/t2027.scala new file mode 100644 index 0000000000..0fe41e5c74 --- /dev/null +++ b/test/pending/run/t2027.scala @@ -0,0 +1,7 @@ + +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))) + fibs(2) // stack overflow + } +} diff --git a/test/pending/run/t2030.check b/test/pending/run/t2030.check new file mode 100644 index 0000000000..74327b88a4 --- /dev/null +++ b/test/pending/run/t2030.check @@ -0,0 +1 @@ +scala.collection.immutable.TreeSet diff --git a/test/pending/run/t2030.scala b/test/pending/run/t2030.scala new file mode 100644 index 0000000000..4bf20915fb --- /dev/null +++ b/test/pending/run/t2030.scala @@ -0,0 +1,7 @@ +import scala.collection.immutable._ + +object Test extends Application { + val res0 = TreeSet(1, 2, 3) + val res1 = res0.map(x => x) + println(res1.getClass) +} -- cgit v1.2.3