summaryrefslogtreecommitdiff
path: root/test/files/run/t153.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/t153.scala')
-rw-r--r--test/files/run/t153.scala5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/files/run/t153.scala b/test/files/run/t153.scala
new file mode 100644
index 0000000000..c7b3c1c762
--- /dev/null
+++ b/test/files/run/t153.scala
@@ -0,0 +1,5 @@
+object Test extends Application {
+ def powers(x: Int) = if ((x&(x-1))==0) Some(x) else None
+ val res = (Stream.range(1, 1000000) flatMap powers).reverse
+ println(res take 42 force)
+} \ No newline at end of file