summaryrefslogtreecommitdiff
path: root/src/library
diff options
context:
space:
mode:
authormichelou <michelou@epfl.ch>2007-08-14 14:02:27 +0000
committermichelou <michelou@epfl.ch>2007-08-14 14:02:27 +0000
commit145c188d55fa2a9865c42d977b6e1e1825042e65 (patch)
tree17b3611c066ed1a6e272062769cbef2da69e668b /src/library
parent58b7571f7215d351361d8c2df552851657c2a50f (diff)
downloadscala-145c188d55fa2a9865c42d977b6e1e1825042e65.tar.gz
scala-145c188d55fa2a9865c42d977b6e1e1825042e65.tar.bz2
scala-145c188d55fa2a9865c42d977b6e1e1825042e65.zip
fixed MSIL tests (.dll not found)
Diffstat (limited to 'src/library')
-rw-r--r--src/library/scala/runtime/RichInt.scala2
-rw-r--r--src/library/scala/runtime/RichLong.scala2
-rw-r--r--src/library/scala/runtime/RichShort.scala6
3 files changed, 6 insertions, 4 deletions
diff --git a/src/library/scala/runtime/RichInt.scala b/src/library/scala/runtime/RichInt.scala
index f2fd48810a..df411d3c96 100644
--- a/src/library/scala/runtime/RichInt.scala
+++ b/src/library/scala/runtime/RichInt.scala
@@ -8,8 +8,10 @@
// $Id$
+
package scala.runtime
+
final class RichInt(start: Int) extends Proxy with Ordered[Int] {
// Proxy
diff --git a/src/library/scala/runtime/RichLong.scala b/src/library/scala/runtime/RichLong.scala
index 4a58b71e16..1f6d527170 100644
--- a/src/library/scala/runtime/RichLong.scala
+++ b/src/library/scala/runtime/RichLong.scala
@@ -18,7 +18,7 @@ final class RichLong(x: Long) extends Proxy with Ordered[Long] {
def self: Any = x
// Ordered[Long].compare
- def compare (y: Long): Int = if (x < y) -1 else if (x > y) 1 else 0
+ def compare(y: Long): Int = if (x < y) -1 else if (x > y) 1 else 0
def min(y: Long): Long = if (x < y) x else y
def max(y: Long): Long = if (x > y) x else y
diff --git a/src/library/scala/runtime/RichShort.scala b/src/library/scala/runtime/RichShort.scala
index c9e3a120f7..9ae218342e 100644
--- a/src/library/scala/runtime/RichShort.scala
+++ b/src/library/scala/runtime/RichShort.scala
@@ -12,12 +12,12 @@
package scala.runtime
-final class RichShort(x: Short) extends Proxy with Ordered[Short] {
+final class RichShort(start: Short) extends Proxy with Ordered[Short] {
// Proxy.self
- def self: Any = x
+ def self: Any = start
// Ordered[Short].compare
- def compare(y: Short): Int = if (x < y) -1 else if (x > y) 1 else 0
+ def compare(that: Short): Int = if (start < that) -1 else if (start > that) 1 else 0
}