diff options
author | michelou <michelou@epfl.ch> | 2006-04-20 11:33:44 +0000 |
---|---|---|
committer | michelou <michelou@epfl.ch> | 2006-04-20 11:33:44 +0000 |
commit | acc947a63b310669bb206f6dacd67cd7d8379fd3 (patch) | |
tree | d2cbd511ca8be1f63567a95f45f82c447756e3f3 /docs/examples/maps.scala | |
parent | 6c633ce6bb8dbe86a36fb17da18912e19bae8e56 (diff) | |
download | scala-acc947a63b310669bb206f6dacd67cd7d8379fd3.tar.gz scala-acc947a63b310669bb206f6dacd67cd7d8379fd3.tar.bz2 scala-acc947a63b310669bb206f6dacd67cd7d8379fd3.zip |
updated Ant build file for testing Scala examples
replaced 'compareTo' by 'compare' in file examples/maps.scala
Diffstat (limited to 'docs/examples/maps.scala')
-rw-r--r-- | docs/examples/maps.scala | 2 |
1 files changed, 1 insertions, 1 deletions
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) && |