From 3b0c2ba269388686ee6b3d797aa5d8cc7c5547db Mon Sep 17 00:00:00 2001 From: Philipp Haller Date: Wed, 22 Jul 2009 15:40:31 +0000 Subject: Fixed #2176. --- test/files/run/t2176.scala | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 test/files/run/t2176.scala (limited to 'test/files/run/t2176.scala') 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) +} -- cgit v1.2.3