diff options
author | David MacIver <david.maciver@gmail.com> | 2009-06-01 11:05:39 +0000 |
---|---|---|
committer | David MacIver <david.maciver@gmail.com> | 2009-06-01 11:05:39 +0000 |
commit | cdda313b4010409537c61f6d2a92cf6957e2dd2c (patch) | |
tree | 3661b9846310103becbc4b75e67bcfe3c76a8c76 /test/files/run/bug2029.scala | |
parent | 3f8de98f0b0ec0e10864b37016c2318439ce7898 (diff) | |
download | scala-cdda313b4010409537c61f6d2a92cf6957e2dd2c.tar.gz scala-cdda313b4010409537c61f6d2a92cf6957e2dd2c.tar.bz2 scala-cdda313b4010409537c61f6d2a92cf6957e2dd2c.zip |
Fix and test for bug 2029.
Diffstat (limited to 'test/files/run/bug2029.scala')
-rw-r--r-- | test/files/run/bug2029.scala | 16 |
1 files changed, 16 insertions, 0 deletions
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)); + } + + +} |