summaryrefslogtreecommitdiff
path: root/test/files/pos
diff options
context:
space:
mode:
authorpaltherr <paltherr@epfl.ch>2003-03-24 11:50:52 +0000
committerpaltherr <paltherr@epfl.ch>2003-03-24 11:50:52 +0000
commit1a2828c106feef0a9870ac833cd1067f2fd91dcd (patch)
treea78f4293339c5165cbd8c49c3f3c0b26f44b518f /test/files/pos
parent61150fa8aea97b7b98b4976178d44b136e60e53e (diff)
downloadscala-1a2828c106feef0a9870ac833cd1067f2fd91dcd.tar.gz
scala-1a2828c106feef0a9870ac833cd1067f2fd91dcd.tar.bz2
scala-1a2828c106feef0a9870ac833cd1067f2fd91dcd.zip
- Removed fields True & False in class scala.Bo...
- Removed fields True & False in class scala.Boolean
Diffstat (limited to 'test/files/pos')
-rw-r--r--test/files/pos/IntSet.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/files/pos/IntSet.scala b/test/files/pos/IntSet.scala
index d18546000c..cfffc88944 100644
--- a/test/files/pos/IntSet.scala
+++ b/test/files/pos/IntSet.scala
@@ -5,7 +5,7 @@ trait IntSet {
def union(that: IntSet): IntSet;
}
module Empty extends IntSet {
- def contains(x: Int): Boolean = Boolean.False;
+ def contains(x: Int): Boolean = false;
def incl(x: Int): IntSet = new NonEmpty(x, Empty, Empty);
def foreach(f: Int => Unit): Unit = ();
def union(that: IntSet): IntSet = that;
@@ -14,7 +14,7 @@ class NonEmpty(elem: Int, left: IntSet, right: IntSet) extends IntSet {
def contains(x: Int): Boolean =
if (x < elem) left contains x
else if (x > elem) right contains x
- else Boolean.True;
+ else true;
def incl(x: Int): IntSet =
if (x < elem) new NonEmpty(elem, left incl x, right)
else if (x > elem) new NonEmpty(elem, left, right incl x)