diff options
Diffstat (limited to 'test/files/run/t2029.scala')
-rw-r--r-- | test/files/run/t2029.scala | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/files/run/t2029.scala b/test/files/run/t2029.scala new file mode 100644 index 0000000000..32b04f0b47 --- /dev/null +++ b/test/files/run/t2029.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)); + } + + +} |