diff --git a/idea/src/jet/lang/Library.jet b/idea/src/jet/lang/Library.jet index 8dea9481b04..c9c42bc8e02 100644 --- a/idea/src/jet/lang/Library.jet +++ b/idea/src/jet/lang/Library.jet @@ -24,7 +24,17 @@ class Range> { fun contains(item : T) : Boolean } -class Double : Comparable { +class Number { + val d : Double + val f : Float + val l : Long + val i : Int + val c : Char + val s : Short + val b : Byte +} + +class Double : Number, Comparable { fun compareTo(other : Float) : Int fun compareTo(other : Long) : Int fun compareTo(other : Int) : Int @@ -83,7 +93,7 @@ class Double : Comparable { fun dec() : Double } -class Float : Comparable { +class Float : Number, Comparable { fun compareTo(other : Double) : Int fun compareTo(other : Float) : Int fun compareTo(other : Long) : Int @@ -144,7 +154,7 @@ class Float : Comparable { fun dec() : Float } -class Long : Comparable { +class Long : Number, Comparable { fun compareTo(other : Double) : Int fun compareTo(other : Float) : Int fun compareTo(other : Long) : Int @@ -205,7 +215,7 @@ class Long : Comparable { fun dec() : Long } -class Int : Comparable { +class Int : Number, Comparable { fun compareTo(other : Double) : Int fun compareTo(other : Float) : Int fun compareTo(other : Int) : Int @@ -266,7 +276,7 @@ class Int : Comparable { fun dec() : Int } -class Char : Comparable { +class Char : Number, Comparable { fun compareTo(other : Double) : Int fun compareTo(other : Float) : Int fun compareTo(other : Int) : Int @@ -327,7 +337,7 @@ class Char : Comparable { fun dec() : Char } -class Short : Comparable { +class Short : Number, Comparable { fun compareTo(other : Double) : Int fun compareTo(other : Float) : Int fun compareTo(other : Int) : Int @@ -388,7 +398,7 @@ class Short : Comparable { fun dec() : Short } -class Byte : Comparable { +class Byte : Number, Comparable { fun compareTo(other : Double) : Int fun compareTo(other : Float) : Int fun compareTo(other : Int) : Int