summaryrefslogtreecommitdiff
path: root/test/files/run/t9219.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/t9219.scala')
-rw-r--r--test/files/run/t9219.scala11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/files/run/t9219.scala b/test/files/run/t9219.scala
new file mode 100644
index 0000000000..c15f55faac
--- /dev/null
+++ b/test/files/run/t9219.scala
@@ -0,0 +1,11 @@
+object Test extends App {
+ def check[U](f: Stream[Int] => U) = {
+ val s = Stream.from(1)
+ f(s)
+ println(s)
+ }
+
+ check(_.tail)
+ check(_.take(4).force)
+ check(_(5))
+}