summaryrefslogtreecommitdiff
path: root/test/pending/pos/t4649.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2012-05-11 07:52:27 -0700
committerPaul Phillips <paulp@improving.org>2012-05-23 08:43:10 -0700
commit402b5e4a1341ef4549b7e0979f9c5afc06f47315 (patch)
tree0ec0f5dbd51874d9ed9d4676451d553474eb8fd1 /test/pending/pos/t4649.scala
parent0d7952f90fc11f4dc055a2658b16b7183f1d6683 (diff)
downloadscala-402b5e4a1341ef4549b7e0979f9c5afc06f47315.tar.gz
scala-402b5e4a1341ef4549b7e0979f9c5afc06f47315.tar.bz2
scala-402b5e4a1341ef4549b7e0979f9c5afc06f47315.zip
Pending and passing tests.
Move now-passing SI-963 test into neg. Test for partial specialization. Pending test for SI-5008. Pending test for SI-4649. Abstract array type test.
Diffstat (limited to 'test/pending/pos/t4649.scala')
-rw-r--r--test/pending/pos/t4649.scala6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/pending/pos/t4649.scala b/test/pending/pos/t4649.scala
new file mode 100644
index 0000000000..0d6caa8d7a
--- /dev/null
+++ b/test/pending/pos/t4649.scala
@@ -0,0 +1,6 @@
+object Test {
+ // @annotation.tailrec
+ def lazyFilter[E](s: Stream[E], p: E => Boolean): Stream[E] = s match {
+ case h #:: t => if (p(h)) h #:: lazyFilter(t, p) else lazyFilter(t, p)
+ }
+}