From c2a9a308cce58d1a1fec703235cdce4e7438e0a0 Mon Sep 17 00:00:00 2001 From: Tiark Rompf Date: Tue, 16 Mar 2010 23:06:10 +0000 Subject: closes #3112. no review. --- test/files/run/t3112.check | 4 ++++ test/files/run/t3112.scala | 11 +++++++++++ 2 files changed, 15 insertions(+) create mode 100644 test/files/run/t3112.check create mode 100644 test/files/run/t3112.scala (limited to 'test') diff --git a/test/files/run/t3112.check b/test/files/run/t3112.check new file mode 100644 index 0000000000..a95644c82c --- /dev/null +++ b/test/files/run/t3112.check @@ -0,0 +1,4 @@ +Vector() +Vector() +Vector() +Vector() \ No newline at end of file diff --git a/test/files/run/t3112.scala b/test/files/run/t3112.scala new file mode 100644 index 0000000000..eb8eec6327 --- /dev/null +++ b/test/files/run/t3112.scala @@ -0,0 +1,11 @@ +// #3112 +object Test { + + def main(args: Array[String]): Unit = { + println((Vector() ++ (0 until 32)) take 0) // works + println((Vector() ++ (0 until 33)) take 0) // error + println((Vector() ++ (0 until 32)) takeRight 0) // works + println((Vector() ++ (0 until 33)) takeRight 0) // error + } + +} \ No newline at end of file -- cgit v1.2.3