[JS IR BE] Implement Long.rangeTo and unmute tests

This commit is contained in:
Zalim Bashorov
2018-07-23 02:38:49 +03:00
parent adcabd2a5a
commit a6cd552a71
20 changed files with 4 additions and 25 deletions
+4 -6
View File
@@ -199,19 +199,17 @@ public class Long internal constructor(
/** Returns the negative of this value. */
public operator fun unaryMinus(): Long = inv() + 1L
/* TODO
/** Creates a range from this value to the specified [other] value. */
public operator fun rangeTo(other: Byte): LongRange
public operator fun rangeTo(other: Byte): LongRange = rangeTo(other.toLong())
/** Creates a range from this value to the specified [other] value. */
public operator fun rangeTo(other: Short): LongRange
public operator fun rangeTo(other: Short): LongRange = rangeTo(other.toLong())
/** Creates a range from this value to the specified [other] value. */
public operator fun rangeTo(other: Int): LongRange
public operator fun rangeTo(other: Int): LongRange = rangeTo(other.toLong())
/** Creates a range from this value to the specified [other] value. */
public operator fun rangeTo(other: Long): LongRange
*/
public operator fun rangeTo(other: Long): LongRange = LongRange(this, other)
/** Shifts this value left by the [bitCount] number of bits. */
public infix fun shl(bitCount: Int): Long = shiftLeft(bitCount)