aboutsummaryrefslogtreecommitdiff
path: root/tests/run/stream_flatmap_odds.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run/stream_flatmap_odds.scala')
-rw-r--r--tests/run/stream_flatmap_odds.scala4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/run/stream_flatmap_odds.scala b/tests/run/stream_flatmap_odds.scala
new file mode 100644
index 000000000..9e12e6dfa
--- /dev/null
+++ b/tests/run/stream_flatmap_odds.scala
@@ -0,0 +1,4 @@
+object Test extends dotty.runtime.LegacyApp {
+ lazy val odds: Stream[Int] = Stream(1) append ( odds flatMap {x => Stream(x + 2)} )
+ Console println (odds take 42).force
+}