summaryrefslogtreecommitdiff
path: root/test/files/run/Course-2002-09.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2003-11-18 15:58:29 +0000
committerMartin Odersky <odersky@gmail.com>2003-11-18 15:58:29 +0000
commit34806cbc476135ae4c42402c26eea9c897e108fe (patch)
tree2c7eee812dd2ae2b079f85891f7f9b92f1d1671f /test/files/run/Course-2002-09.scala
parent5fb655da1e4efa67f2b2fccdf87a45c0d88090e7 (diff)
downloadscala-34806cbc476135ae4c42402c26eea9c897e108fe.tar.gz
scala-34806cbc476135ae4c42402c26eea9c897e108fe.tar.bz2
scala-34806cbc476135ae4c42402c26eea9c897e108fe.zip
*** empty log message ***
Diffstat (limited to 'test/files/run/Course-2002-09.scala')
-rw-r--r--test/files/run/Course-2002-09.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/files/run/Course-2002-09.scala b/test/files/run/Course-2002-09.scala
index 4238402263..b984fbf9d2 100644
--- a/test/files/run/Course-2002-09.scala
+++ b/test/files/run/Course-2002-09.scala
@@ -108,7 +108,7 @@ class Quantity() {
if (v != v1) error("Error! contradiction: " + v + " and " + v1);
case None() =>
informant = setter; value = Some(v);
- for (val c <- constraints; !(c == informant)) do {
+ for (val c <- constraints; !(c == informant)) {
c.newValue;
}
}
@@ -117,7 +117,7 @@ class Quantity() {
def forgetValue(retractor: Constraint): Unit = {
if (retractor == informant) {
value = None();
- for (val c <- constraints; !(c == informant)) do c.dropValue;
+ for (val c <- constraints; !(c == informant)) c.dropValue;
}
}
def forgetValue: Unit = forgetValue(NoConstraint);