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
@@ -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