From 1a2828c106feef0a9870ac833cd1067f2fd91dcd Mon Sep 17 00:00:00 2001 From: paltherr Date: Mon, 24 Mar 2003 11:50:52 +0000 Subject: - Removed fields True & False in class scala.Bo... - Removed fields True & False in class scala.Boolean --- test/files/pos/IntSet.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/files/pos') 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) -- cgit v1.2.3