diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/files/run/bug2029.check | 3 | ||||
-rw-r--r-- | test/files/run/bug2029.scala | 16 |
2 files changed, 19 insertions, 0 deletions
diff --git a/test/files/run/bug2029.check b/test/files/run/bug2029.check new file mode 100644 index 0000000000..57b610ccc5 --- /dev/null +++ b/test/files/run/bug2029.check @@ -0,0 +1,3 @@ +1,2,3,4,5 +4,3,2 +true diff --git a/test/files/run/bug2029.scala b/test/files/run/bug2029.scala new file mode 100644 index 0000000000..32b04f0b47 --- /dev/null +++ b/test/files/run/bug2029.scala @@ -0,0 +1,16 @@ +object Test{ + def main(args : Array[String]){ + import scala.collection.immutable.TreeSet; + + val mainSet = TreeSet(1 to 5 :_*) + + var compareCalled = false; + val smallerSet = TreeSet(2 to 4 :_*)(Ordering[Int].reverse) + + println(mainSet.mkString(",")) + println(smallerSet.mkString(",")) + println(smallerSet.subsetOf(mainSet)); + } + + +} |