From 402b5e4a1341ef4549b7e0979f9c5afc06f47315 Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Fri, 11 May 2012 07:52:27 -0700 Subject: 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. --- test/pending/pos/t4649.scala | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 test/pending/pos/t4649.scala (limited to 'test/pending/pos/t4649.scala') 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) + } +} -- cgit v1.2.3