diff options
author | Martin Odersky <odersky@gmail.com> | 2003-11-18 15:58:29 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2003-11-18 15:58:29 +0000 |
commit | 34806cbc476135ae4c42402c26eea9c897e108fe (patch) | |
tree | 2c7eee812dd2ae2b079f85891f7f9b92f1d1671f /test/files/run/Course-2002-09.scala | |
parent | 5fb655da1e4efa67f2b2fccdf87a45c0d88090e7 (diff) | |
download | scala-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.scala | 4 |
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); |