diff options
Diffstat (limited to 'test/pos/IntSet.scala')
-rw-r--r-- | test/pos/IntSet.scala | 4 |
1 files changed, 2 insertions, 2 deletions
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) |