blob: bfe845c61508dbe23a075045ebfa944190c77388 (
plain) (
blame)
1
2
3
4
5
6
7
8
|
package scala;
trait Ord[t <: Ord[t]]: t {
def < (that: t): Boolean;
def <=(that: t): Boolean = this < that || this == that;
def > (that: t): Boolean = that < this;
def >=(that: t): Boolean = that <= this;
}
|