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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user