summaryrefslogtreecommitdiff
path: root/test/files/run/Course-2002-03.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/Course-2002-03.scala')
-rw-r--r--test/files/run/Course-2002-03.scala8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/files/run/Course-2002-03.scala b/test/files/run/Course-2002-03.scala
index 89b35aeb10..86f5453111 100644
--- a/test/files/run/Course-2002-03.scala
+++ b/test/files/run/Course-2002-03.scala
@@ -154,7 +154,7 @@ module M5 {
}
class Empty() extends IntSet {
- def contains(x: Int): Boolean = False;
+ def contains(x: Int): Boolean = false;
def incl(x: Int): IntSet = new NonEmpty(x, new Empty(), new Empty());
}
@@ -162,7 +162,7 @@ module M5 {
def contains(x: Int): Boolean =
if (x < elem) left contains x
else if (x > elem) right contains x
- else 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)
@@ -245,7 +245,7 @@ module M8 {
}
class Empty() extends IntSet { // !!! class Empty() -> module Empty
- def contains(x: Int): Boolean = False;
+ def contains(x: Int): Boolean = false;
def incl(x: Int): IntSet = new NonEmpty(x, new Empty(), new Empty());
def map(f: Int => Int): IntSet = this;
@@ -258,7 +258,7 @@ module M8 {
def contains(x: Int): Boolean =
if (x < elem) left contains x
else if (x > elem) right contains x
- else True;
+ else true;
def incl(x: Int): IntSet =
if (x < elem) new NonEmpty(elem, left incl x, right)