summaryrefslogtreecommitdiff
path: root/sources/scala/Predef.scala
diff options
context:
space:
mode:
Diffstat (limited to 'sources/scala/Predef.scala')
-rw-r--r--sources/scala/Predef.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/sources/scala/Predef.scala b/sources/scala/Predef.scala
index d3214f9fd3..f8e62aa12b 100644
--- a/sources/scala/Predef.scala
+++ b/sources/scala/Predef.scala
@@ -141,6 +141,8 @@ object Predef {
// views -------------------------------------------------------------
+ implicit def identity[a](x: a): a = x;
+
implicit def int2ordered(x: int): Ordered[int] = new Ordered[int] with Proxy {
def self: Any = x;
def compareTo [b >: int <% Ordered[b]](y: b): int = y match {
@@ -295,8 +297,6 @@ object Predef {
}
def view(x: String): Ordered[String] = string2ordered(x);
- implicit def ordered2ordered[a <: Ordered[a]](x: a): Ordered[a] = x;
-
implicit def array2seq[A](xs: Array[A]): Seq[A] = new Seq[A] {
def length = xs.length;
def elements = Iterator.fromArray(xs);