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:
@@ -585,7 +585,7 @@ public final class Float : jet.Number, jet.Comparable<jet.Float> {
|
||||
public final fun rangeTo(/*0*/ other: jet.Double): jet.DoubleRange
|
||||
public final fun rangeTo(/*0*/ other: jet.Float): jet.FloatRange
|
||||
public final fun rangeTo(/*0*/ other: jet.Int): jet.FloatRange
|
||||
public final fun rangeTo(/*0*/ other: jet.Long): jet.DoubleRange
|
||||
public final fun rangeTo(/*0*/ other: jet.Long): jet.FloatRange
|
||||
public final fun rangeTo(/*0*/ other: jet.Short): jet.FloatRange
|
||||
public final fun times(/*0*/ other: jet.Byte): jet.Float
|
||||
public final fun times(/*0*/ other: jet.Char): jet.Float
|
||||
|
||||
Reference in New Issue
Block a user