diff options
author | Philipp Haller <hallerp@gmail.com> | 2009-07-22 15:40:31 +0000 |
---|---|---|
committer | Philipp Haller <hallerp@gmail.com> | 2009-07-22 15:40:31 +0000 |
commit | 3b0c2ba269388686ee6b3d797aa5d8cc7c5547db (patch) | |
tree | 4009d08b67124e76e1cae150da994d922c9369bc /test/files/run | |
parent | 202d2562ec530b25b5cf5f1a25aff475963180d5 (diff) | |
download | scala-3b0c2ba269388686ee6b3d797aa5d8cc7c5547db.tar.gz scala-3b0c2ba269388686ee6b3d797aa5d8cc7c5547db.tar.bz2 scala-3b0c2ba269388686ee6b3d797aa5d8cc7c5547db.zip |
Fixed #2176.
Diffstat (limited to 'test/files/run')
-rw-r--r-- | test/files/run/t2176.check | 1 | ||||
-rw-r--r-- | test/files/run/t2176.scala | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/test/files/run/t2176.check b/test/files/run/t2176.check new file mode 100644 index 0000000000..2298e8b6e9 --- /dev/null +++ b/test/files/run/t2176.check @@ -0,0 +1 @@ +Stream(1) diff --git a/test/files/run/t2176.scala b/test/files/run/t2176.scala new file mode 100644 index 0000000000..f8b07271a1 --- /dev/null +++ b/test/files/run/t2176.scala @@ -0,0 +1,4 @@ +object Test extends Application { + val res0 = Stream.cons(1, Stream.cons( { println("ouch"); 2 }, Stream.empty)) + println(res0.take(1).force) +} |