diff options
author | paltherr <paltherr@epfl.ch> | 2003-03-24 11:50:52 +0000 |
---|---|---|
committer | paltherr <paltherr@epfl.ch> | 2003-03-24 11:50:52 +0000 |
commit | 1a2828c106feef0a9870ac833cd1067f2fd91dcd (patch) | |
tree | a78f4293339c5165cbd8c49c3f3c0b26f44b518f /test | |
parent | 61150fa8aea97b7b98b4976178d44b136e60e53e (diff) | |
download | scala-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')
-rw-r--r-- | test/files/pos/IntSet.scala | 4 | ||||
-rw-r--r-- | test/pos/IntSet.scala | 4 |
2 files changed, 4 insertions, 4 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) diff --git a/test/pos/IntSet.scala b/test/pos/IntSet.scala index d18546000c..cfffc88944 100644 --- a/test/pos/IntSet.scala +++ b/test/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) |