From acc947a63b310669bb206f6dacd67cd7d8379fd3 Mon Sep 17 00:00:00 2001 From: michelou Date: Thu, 20 Apr 2006 11:33:44 +0000 Subject: updated Ant build file for testing Scala examples replaced 'compareTo' by 'compare' in file examples/maps.scala --- docs/examples/maps.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/examples/maps.scala') diff --git a/docs/examples/maps.scala b/docs/examples/maps.scala index 8b5158005b..1b5d41df54 100644 --- a/docs/examples/maps.scala +++ b/docs/examples/maps.scala @@ -157,7 +157,7 @@ object maps { def month = m def day = d - def compareTo[b >: Date <% Ordered[b]](that: b): int = that match { + override def compare [b >: Date <% Ordered[b]](that: b): Int = that match { case other: Date => if ((year == other.year) && (month == other.month) && -- cgit v1.2.3