summaryrefslogtreecommitdiff
path: root/test/pending/neg/t6680c.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/pending/neg/t6680c.scala')
-rw-r--r--test/pending/neg/t6680c.scala17
1 files changed, 0 insertions, 17 deletions
diff --git a/test/pending/neg/t6680c.scala b/test/pending/neg/t6680c.scala
deleted file mode 100644
index f69663a71b..0000000000
--- a/test/pending/neg/t6680c.scala
+++ /dev/null
@@ -1,17 +0,0 @@
-package s
-
-trait Stream[+A]
-case class Unfold[S,+A](s: S, f: S => Option[(A,S)]) extends Stream[A]
-
-object Stream {
- def fromList[A](a: List[A]): Stream[A] =
- Unfold(a, (l:List[A]) => l.headOption.map((_,l.tail)))
-}
-
-object Test {
- def main(args: Array[String]): Unit = {
- val res = Stream.fromList(List(1,2,3,4))
-
- res match { case Unfold(s, f) => f("a string!") }
- }
-}