We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28eb1c3 commit 9dca57bCopy full SHA for 9dca57b
tests/pos/i1870.scala
@@ -0,0 +1,11 @@
1
+trait Stream[+A]
2
+case class Unfold[S,+A](s: S, f: S => Option[(A,S)]) extends Stream[A]
3
+
4
+object Test {
5
+ def unbox[A](s: Stream[A]) = s match {
6
+ case Unfold(s, f) =>
7
+ val s1 = s
8
+ val f1 = f
9
+ (s, f)
10
+ }
11
+}
0 commit comments