Fix rangeTo between Float and Long

Float.rangeTo(Long) and Long.rangeTo(Float) now both return FloatRange for
consistency with other binary operations between floats and longs which, in
turn, return float to be consistent with Java
This commit is contained in:
Alexander Udalov
2014-02-10 23:01:08 +04:00
parent 7b642c9e37
commit 8c97d9ebb3
4 changed files with 4 additions and 6 deletions
+1 -1
View File
@@ -141,7 +141,7 @@ public class Float private () : Number, Comparable<Float> {
public fun rangeTo(other : Double) : DoubleRange
public fun rangeTo(other : Float) : FloatRange
public fun rangeTo(other : Long) : DoubleRange
public fun rangeTo(other : Long) : FloatRange
public fun rangeTo(other : Int) : FloatRange
public fun rangeTo(other : Short) : FloatRange
public fun rangeTo(other : Byte) : FloatRange