summaryrefslogtreecommitdiff
path: root/test/files/run/Course-2002-09.scala
diff options
context:
space:
mode:
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 _ =>
}