- changed 'Ord' to 'Ordered'.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@3145 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
This commit is contained in:
michelou 2004-05-14 15:59:28 +00:00
parent c3bf9394e1
commit 59afea8838
2 changed files with 4 additions and 4 deletions

View File

@ -1,5 +1,5 @@
class D[A <: Ord[A],B] {
abstract class Tree[A <: Ord[A],B]();
class D[A <: Ordered[A],B] {
abstract class Tree[A <: Ordered[A],B]();
case class Node[A,B](key:A,value:B,smaller:Tree[A,B],bigger:Tree[A,B])
extends Tree[A,B];
case class Nil[A,B]() extends Tree[A,B];

View File

@ -26,11 +26,11 @@ object Funcs {
object M1 {
def f[A](x: A) = 11;
def f[A <: Ord[A]](x: A) = 12;
def f[A <: Ordered[A]](x: A) = 12;
}
object M2 {
def f[A <: Ord[A]](x: A) = 21;
def f[A <: Ordered[A]](x: A) = 21;
def f[A](x: A) = 22;
}