diff options
author | Martin Odersky <odersky@gmail.com> | 2006-03-20 13:25:38 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2006-03-20 13:25:38 +0000 |
commit | 47f417a4a2d7d91086b9594f9ab20ee33a9f3a52 (patch) | |
tree | 55b144948c612856a377f352b861189e84144bbb /src/library | |
parent | 5459db1226b86027e0817acb0a2f41e0c12b28ed (diff) | |
download | scala-47f417a4a2d7d91086b9594f9ab20ee33a9f3a52.tar.gz scala-47f417a4a2d7d91086b9594f9ab20ee33a9f3a52.tar.bz2 scala-47f417a4a2d7d91086b9594f9ab20ee33a9f3a52.zip |
Fixed problem in 2.
Diffstat (limited to 'src/library')
-rw-r--r-- | src/library/scala/Predef.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library/scala/Predef.scala b/src/library/scala/Predef.scala index 775daf40f3..ab3bfc7650 100644 --- a/src/library/scala/Predef.scala +++ b/src/library/scala/Predef.scala @@ -366,7 +366,7 @@ object Predef { implicit def string2ordered(x: String): Ordered[String] = new Ordered[String] with Proxy { def self: Any = x; def compare [b >: String <% Ordered[b]](y: b): int = y match { - case y1: String => x compare y1; + case y1: String => x compareTo y1; case _ => -(y compare x) } } |