diff options
author | michelou <michelou@epfl.ch> | 2007-08-17 14:22:22 +0000 |
---|---|---|
committer | michelou <michelou@epfl.ch> | 2007-08-17 14:22:22 +0000 |
commit | b47ed354cf13fa9b1607d6c638224782d111fc5c (patch) | |
tree | f927bd51b110143e96c0c554f9bcec160006c099 /test/files/run/Course-2002-09.scala | |
parent | 300caee15c263c956ebf8f428fc827109ebfc9d8 (diff) | |
download | scala-b47ed354cf13fa9b1607d6c638224782d111fc5c.tar.gz scala-b47ed354cf13fa9b1607d6c638224782d111fc5c.tar.bz2 scala-b47ed354cf13fa9b1607d6c638224782d111fc5c.zip |
updated several tests for MSIL
Diffstat (limited to 'test/files/run/Course-2002-09.scala')
-rw-r--r-- | test/files/run/Course-2002-09.scala | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/files/run/Course-2002-09.scala b/test/files/run/Course-2002-09.scala index 029796ab6d..193edb9b7e 100644 --- a/test/files/run/Course-2002-09.scala +++ b/test/files/run/Course-2002-09.scala @@ -49,8 +49,7 @@ class Multiplier(m1: Quantity, m2: Quantity, prod: Quantity) class Squarer(square: Quantity, root: Quantity) extends Constraint { def newValue: Unit = Pair(square.getValue, root.getValue) match { case Pair(Some(x), _ )if (x < 0) => error("Square of negative number") - case Pair(Some(x), _ ) => - root.setValue(compat.Math.sqrt(x), this) + case Pair(Some(x), _ ) => root.setValue(Math.sqrt(x), this) case Pair(_ , Some(x)) => square.setValue(x*x, this) case _ => } |