summaryrefslogtreecommitdiff
path: root/test/files/pos
diff options
context:
space:
mode:
authorGrzegorz Kossakowski <grzegorz.kossakowski@gmail.com>2014-02-10 18:58:29 +0100
committerGrzegorz Kossakowski <grzegorz.kossakowski@gmail.com>2014-02-10 18:58:29 +0100
commit90aa12ee9cca5d433459f0a825d510c8fb1c17be (patch)
treed2ee76bbe4b483784aa34164a590952c1576da67 /test/files/pos
parent2ee1328e7944e4544ee046e30bfad1a5eb3ab07e (diff)
parent51ec62a8c307cd66fe34fe07c85100d48b54aa8f (diff)
downloadscala-90aa12ee9cca5d433459f0a825d510c8fb1c17be.tar.gz
scala-90aa12ee9cca5d433459f0a825d510c8fb1c17be.tar.bz2
scala-90aa12ee9cca5d433459f0a825d510c8fb1c17be.zip
Merge pull request #3480 from paulp/pr/publicize-abstract-star
Make the Abstract* classes public.
Diffstat (limited to 'test/files/pos')
-rw-r--r--test/files/pos/t6948.scala10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/files/pos/t6948.scala b/test/files/pos/t6948.scala
new file mode 100644
index 0000000000..12a1d7eaf2
--- /dev/null
+++ b/test/files/pos/t6948.scala
@@ -0,0 +1,10 @@
+object t6948 {
+ val rand = new scala.util.Random()
+ def a1 = rand.shuffle(0 to 5)
+ // Tis not to be
+ // def a2 = rand.shuffle(0 until 5)
+ def a3 = rand.shuffle(Vector(1, 2, 3))
+ def a4 = rand.shuffle(scala.collection.Seq(1, 2, 3))
+ def a5 = rand.shuffle(scala.collection.immutable.Seq(1, 2, 3))
+ def a6 = rand.shuffle(scala.collection.mutable.Seq(1, 2, 3))
+}