Skip to content

Commit 9dca57b

Browse files
committed
Test case for #1870
1 parent 28eb1c3 commit 9dca57b

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/pos/i1870.scala

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)