summaryrefslogtreecommitdiff
path: root/test/files/run/Course-2002-09.scala
diff options
context:
space:
mode:
authormihaylov <mihaylov@epfl.ch>2006-10-08 09:07:41 +0000
committermihaylov <mihaylov@epfl.ch>2006-10-08 09:07:41 +0000
commit6a20eed594c346790b6da5da4be243dd581927d3 (patch)
treef6656dd3bdf452428b44b2b5f663b51d23fb3b93 /test/files/run/Course-2002-09.scala
parent42dc44dd5235cbe30bc52dcaa360bdccb50b87cd (diff)
downloadscala-6a20eed594c346790b6da5da4be243dd581927d3.tar.gz
scala-6a20eed594c346790b6da5da4be243dd581927d3.tar.bz2
scala-6a20eed594c346790b6da5da4be243dd581927d3.zip
Moved scala.runtime.compat to scala.compat
Diffstat (limited to 'test/files/run/Course-2002-09.scala')
-rw-r--r--test/files/run/Course-2002-09.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/files/run/Course-2002-09.scala b/test/files/run/Course-2002-09.scala
index 65f9adad2b..afc3be7665 100644
--- a/test/files/run/Course-2002-09.scala
+++ b/test/files/run/Course-2002-09.scala
@@ -50,7 +50,7 @@ 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(scala.runtime.compat.Math.sqrt(x), this)
+ root.setValue(compat.Math.sqrt(x), this)
case Pair(_ , Some(x)) => square.setValue(x*x, this)
case _ =>
}