summaryrefslogtreecommitdiff
path: root/test/files/run/Course-2002-03.scala
diff options
context:
space:
mode:
authorpaltherr <paltherr@epfl.ch>2003-03-18 13:14:45 +0000
committerpaltherr <paltherr@epfl.ch>2003-03-18 13:14:45 +0000
commit374fe5428200c92a0636a0266d112b60af16e9cf (patch)
tree20868b2689b9783e6111ebb927747448399cdd90 /test/files/run/Course-2002-03.scala
parent890f4fc1b3bb8083b1003d37860bb8262f7a846e (diff)
downloadscala-374fe5428200c92a0636a0266d112b60af16e9cf.tar.gz
scala-374fe5428200c92a0636a0266d112b60af16e9cf.tar.bz2
scala-374fe5428200c92a0636a0266d112b60af16e9cf.zip
- Removed True & False from Predef
- Updated all scala files to use true & false
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)