diff options
Diffstat (limited to 'tests/run/t2176.scala')
-rw-r--r-- | tests/run/t2176.scala | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/run/t2176.scala b/tests/run/t2176.scala new file mode 100644 index 000000000..8e2c583f1 --- /dev/null +++ b/tests/run/t2176.scala @@ -0,0 +1,4 @@ +object Test extends dotty.runtime.LegacyApp { + val res0 = Stream.cons(1, Stream.cons( { println("ouch"); 2 }, Stream.empty)) + println(res0.take(1).force) +} |